8 use Magento\Customer\Test\Page\CustomerAccountIndex;
9 use Magento\Mtf\TestStep\TestStepInterface;
10 use Magento\Vault\Test\Page\StoredPaymentMethods;
17 private $customerAccountIndex;
22 private $storedPaymentMethodsPage;
31 StoredPaymentMethods $storedPaymentMethodsPage,
32 CustomerAccountIndex $customerAccountIndex
34 $this->storedPaymentMethodsPage = $storedPaymentMethodsPage;
35 $this->customerAccountIndex = $customerAccountIndex;
45 $this->customerAccountIndex->open();
46 $this->customerAccountIndex->getAccountMenuBlock()->openMenuItem(
'Stored Payment Methods');
47 $storedPaymentsBlock = $this->storedPaymentMethodsPage->getStoredPaymentsBlock();
48 $storedPaymentsBlock->deleteStoredPayment();
__construct(StoredPaymentMethods $storedPaymentMethodsPage, CustomerAccountIndex $customerAccountIndex)