9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Cms\Test\Page\CmsIndex;
11 use Magento\Checkout\Test\Page\CheckoutOnepage;
12 use Magento\Mtf\TestStep\TestStepFactory;
14 use Magento\CurrencySymbol\Test\Fixture\CurrencySymbolEntity;
35 CheckoutOnepage $checkoutOnepage,
36 TestStepFactory $testStepFactory,
43 $cmsIndex->getLinksBlock()->waitWelcomeMessage();
45 $testStepFactory->create(
46 \
Magento\Checkout\Test\TestStep\AddProductsToTheCartStep::class,
49 $testStepFactory->create(\
Magento\Checkout\Test\TestStep\ProceedToCheckoutStep::class)->run();
50 \PHPUnit\Framework\Assert::assertEquals(
52 $checkoutOnepage->getShippingMethodBlock()->getShippingMethodAmount($shipping),
53 'Shipping amount is not correct in the checkout page.' 64 return 'Shipping amount is correct in the checkout page.';
processAssert(CmsIndex $cmsIndex, CheckoutOnepage $checkoutOnepage, TestStepFactory $testStepFactory, CatalogProductSimple $product, CurrencySymbolEntity $currencySymbol, $shippingAmount, array $shipping)