|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontDeleteCustomerAddressTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Delete customer address from storefront"/> |
| 14 | + <title value="User should be able to delete Customer address successfully from storefront"/> |
| 15 | + <description value="User should be able to delete Customer address successfully from storefront"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MC-5713"/> |
| 18 | + <group value="Customer"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
| 22 | + </before> |
| 23 | + <after> |
| 24 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 25 | + </after> |
| 26 | + <amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/> |
| 27 | + <fillField stepKey="fillEmail" userInput="$$createCustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/> |
| 28 | + <fillField stepKey="fillPassword" userInput="$$createCustomer.password$$" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/> |
| 29 | + <click stepKey="clickSignInAccountButton" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/> |
| 30 | + <actionGroup ref="EnterCustomerAddressInfo" stepKey="enterAddressInfo"> |
| 31 | + <argument name="Address" value="US_Address_NY"/> |
| 32 | + </actionGroup> |
| 33 | + <see userInput="You saved the address." stepKey="verifyAddressCreated"/> |
| 34 | + <click selector="{{StorefrontCustomerAddressesSection.deleteAdditionalAddress('1')}}" stepKey="deleteAdditionalAddress"/> |
| 35 | + <waitForElementVisible selector="{{ModalConfirmationSection.modalContent}}" stepKey="waitFortheConfirmationModal"/> |
| 36 | + <see selector="{{ModalConfirmationSection.modalContent}}" userInput="Are you sure you want to delete this address?" stepKey="seeAddressDeleteConfirmationMessage"/> |
| 37 | + <click selector="{{ModalConfirmationSection.OkButton}}" stepKey="confirmDelete"/> |
| 38 | + <waitForPageLoad stepKey="waitForDeleteToFinish"/> |
| 39 | + <see userInput="You deleted the address." stepKey="verifyDeleteAddress"/> |
| 40 | + </test> |
| 41 | +</tests> |
0 commit comments