10 use Magento\Sales\Test\Page\Adminhtml\InvoiceIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
32 $invoiceIndex->open();
34 $orderId =
$order->getId();
35 foreach ($ids[
'invoiceIds'] as $key => $invoiceId) {
38 'order_id' => $orderId,
39 'grand_total_from' =>
$amount[$key][
'grand_invoice_total'],
40 'grand_total_to' =>
$amount[$key][
'grand_invoice_total'],
42 $invoiceIndex->getInvoicesGrid()->search($filter);
43 $filter[
'grand_total_from'] = number_format(
$amount[$key][
'grand_invoice_total'], 2);
44 $filter[
'grand_total_to'] = number_format(
$amount[$key][
'grand_invoice_total'], 2);
45 \PHPUnit\Framework\Assert::assertFalse(
46 $invoiceIndex->getInvoicesGrid()->isRowVisible($filter,
false,
false),
47 'Invoice is present in invoices grid on invoice index page.' 59 return 'Invoice is absent in the invoices grid on invoice index page.';
processAssert(InvoiceIndex $invoiceIndex, OrderInjectable $order, array $ids)