10 use Magento\Sales\Test\Page\CreditMemoView;
11 use Magento\Sales\Test\Page\OrderHistory;
12 use Magento\Sales\Test\Page\CustomerOrderView;
30 OrderHistory $orderHistory,
32 CustomerOrderView $customerOrderView,
33 CreditMemoView $creditMemoView,
37 $orderHistory->getOrderHistoryBlock()->openOrderById(
$order->getId());
38 $customerOrderView->getOrderViewBlock()->openLinkByName(
'Refunds');
39 foreach ($ids[
'creditMemoIds'] as $key => $creditMemoId) {
40 \PHPUnit\Framework\Assert::assertEquals(
41 number_format(
$order->getPrice()[
'refund'][$key][
'grand_creditmemo_total'], 2),
42 $creditMemoView->getCreditMemoBlock()->getItemBlock($creditMemoId)->getGrandTotal()
54 return 'Credit memo Grand Total amount is equal to placed order Grand Total amount on credit memo page.';
loginCustomerAndOpenOrderPage(Customer $customer)
processAssert(OrderHistory $orderHistory, OrderInjectable $order, CustomerOrderView $customerOrderView, CreditMemoView $creditMemoView, array $ids)