9 use Magento\Checkout\Test\Page\CheckoutCart;
11 use Magento\Mtf\Fixture\FixtureFactory;
12 use Magento\Customer\Test\Fixture\Address;
14 use Magento\Mtf\TestStep\TestStepInterface;
106 public function run()
108 $this->checkoutCart->open();
109 $this->checkoutCart->getCartBlock()->waitCartContainerLoading();
112 if ($this->cart !==
null) {
113 $cart = $this->fixtureFactory->createByCode(
115 [
'data' => array_merge($this->cart->getData(), [
'items' => [
'products' =>
$this->products]])]
117 $this->checkoutCart->getShippingBlock()->fillEstimateShippingAndTax($this->address);
118 if (!empty($this->shipping)) {
119 $this->checkoutCart->getShippingBlock()->selectShippingMethod($this->shipping);
121 $this->checkoutCart->getTotalsBlock()->waitForUpdatedTotals();
122 $this->assertEstimateShippingAndTax->processAssert($this->checkoutCart,
$cart,
false);
__construct(CheckoutCart $checkoutCart, Address $address, AssertEstimateShippingAndTax $assertEstimateShippingAndTax, FixtureFactory $fixtureFactory, array $products, array $shipping=[], Cart $cart=null)
$assertEstimateShippingAndTax