9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Mtf\ObjectManager;
11 use Magento\Mtf\System\Event\EventManagerInterface;
12 use Magento\Reports\Test\Page\Adminhtml\SalesInvoiceReport;
42 EventManagerInterface $eventManager,
57 $this->salesInvoiceReport->open();
58 $this->salesInvoiceReport->getMessagesBlock()->clickLinkInMessage(
'notice',
'here');
59 $this->salesInvoiceReport->getFilterForm()->viewsReport($invoiceReport);
60 $this->salesInvoiceReport->getActionBlock()->showReport();
71 $totalInvoice = $this->order->getPrice()[
'invoice'][0][
'grand_invoice_total'];
72 $expectedInvoiceData[
'invoiced'] += 1;
73 $expectedInvoiceData[
'qty'] += 1;
74 $expectedInvoiceData[
'total-invoiced'] += $totalInvoice;
76 return $expectedInvoiceData;
searchInInvoiceReportGrid(array $invoiceReport)
__construct(ObjectManager $objectManager, EventManagerInterface $eventManager, SalesInvoiceReport $salesInvoiceReport)
prepareExpectedResult(array $expectedInvoiceData)