10 use Magento\Customer\Test\Page\CustomerAccountIndex;
11 use Magento\Mtf\TestCase\Injectable;
65 $addressToDelete =
$customer->getDataFieldConfig(
'address')[
'source']->getAddresses()[1];
68 $this->objectManager->create(
69 \
Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep::class,
72 $this->customerAccountIndex->getAccountMenuBlock()->openMenuItem(
'Address Book');
73 $this->customerAccountIndex->getAdditionalAddressBlock()->deleteAdditionalAddress($addressToDelete);
75 return [
'deletedAddress' => $addressToDelete];
__inject(CustomerAccountIndex $customerAccountIndex)