9 use Magento\Checkout\Test\Page\CheckoutCart;
10 use Magento\Checkout\Test\Page\CheckoutOnepage;
11 use Magento\Checkout\Test\Page\CheckoutOnepageSuccess;
12 use Magento\Cms\Test\Page\CmsIndex;
14 use Magento\Sales\Test\Page\CustomerOrderView;
15 use Magento\Mtf\Fixture\InjectableFixture;
46 CheckoutOnepageSuccess $checkoutOnepageSuccess,
53 $checkoutCart->getProceedToCheckoutBlock()->proceedToCheckout();
54 $cmsIndex->getCmsPageBlock()->waitPageInit();
55 $checkoutOnepage->getPaymentBlock()->selectPaymentMethod([
'method' =>
'checkmo']);
61 $message =
'Prices on order review should be equal to defined in dataset.';
62 \PHPUnit\Framework\Assert::assertEquals(
$prices, array_filter($actualPrices),
$message);
65 $checkoutOnepageSuccess->getSuccessBlock()->getGuestOrderId();
66 $checkoutOnepageSuccess->getSuccessBlock()->openOrder();
72 $message =
'Prices on order view page should be equal to defined in dataset.';
73 \PHPUnit\Framework\Assert::assertEquals(
$prices, array_filter($actualPrices),
$message);
getReviewTotals($actualPrices)
getOrderTotals($actualPrices)
processAssert(array $prices, InjectableFixture $product, CheckoutCart $checkoutCart, CheckoutOnepage $checkoutOnepage, CheckoutOnepageSuccess $checkoutOnepageSuccess, CustomerOrderView $customerOrderView, CmsIndex $cmsIndex)
getOrderPrices($actualPrices, InjectableFixture $product)
getReviewPrices($actualPrices, InjectableFixture $product)