9 use Magento\Checkout\Test\Page\CheckoutOnepage;
10 use Magento\Customer\Test\Fixture\Address;
11 use Magento\Mtf\TestStep\TestStepInterface;
23 private $checkoutOnepage;
47 $this->checkoutOnepage = $checkoutOnepage;
59 $shippingBlock = $this->checkoutOnepage->getShippingBlock();
60 $shippingBlock->clickOnNewAddressButton();
62 $shippingBlock->getAddressModalBlock()->fill($this->address);
65 $shippingBlock->getAddressModalBlock()->save();
67 $shippingBlock->getAddressModalBlock()->cancel();
70 return [
'shippingAddress' => $this->address];
__construct(CheckoutOnepage $checkoutOnepage, Address $shippingAddress=null, $save=true)