9 use Magento\Mtf\Fixture\FixtureFactory;
10 use Magento\Mtf\TestCase\Injectable;
11 use Magento\Reports\Test\Page\Adminhtml\RefundsReport;
54 private $fixtureFactory;
66 $this->fixtureFactory = $fixtureFactory;
79 $this->refundsReport->open();
80 $this->refundsReport->getMessagesBlock()->clickLinkInMessage(
'notice',
'here');
81 $this->refundsReport->getFilterBlock()->viewsReport(
$refundsReport);
82 $this->refundsReport->getActionBlock()->showReport();
83 $initialRefundsResult = $this->refundsReport->getGridBlock()->getLastResult();
88 $cart = $this->fixtureFactory->createByCode(
'cart',
$cart);
89 $invoice = $this->objectManager->create(
90 \
Magento\Sales\Test\TestStep\CreateInvoiceStep::class,
94 $creditMemo = $this->objectManager->create(
95 \
Magento\Sales\Test\TestStep\CreateCreditMemoStep::class,
100 return [
'initialRefundsResult' => $initialRefundsResult];
__inject(FixtureFactory $fixtureFactory, RefundsReport $refundsReport)
test(OrderInjectable $order, array $refundsReport)