10 use Magento\Sales\Test\Page\CustomerOrderView;
11 use Magento\Sales\Test\Page\InvoiceView;
12 use Magento\Sales\Test\Page\OrderHistory;
31 OrderHistory $orderHistory,
33 CustomerOrderView $customerOrderView,
34 InvoiceView $invoiceView,
38 $orderHistory->getOrderHistoryBlock()->openOrderById(
$order->getId());
39 $customerOrderView->getOrderViewBlock()->openLinkByName(
'Invoices');
40 foreach ($ids[
'invoiceIds'] as $key => $invoiceId) {
41 \PHPUnit\Framework\Assert::assertEquals(
42 number_format(
$order->getPrice()[
'invoice'][$key][
'grand_invoice_total'], 2),
43 $invoiceView->getInvoiceBlock()->getItemBlock($invoiceId)->getGrandTotal()
55 return 'Invoiced Grand Total amount is equal to placed order Grand Total amount on invoice page.';
processAssert(OrderHistory $orderHistory, OrderInjectable $order, CustomerOrderView $customerOrderView, InvoiceView $invoiceView, array $ids)
loginCustomerAndOpenOrderPage(Customer $customer)