|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="StorefrontUpdateCustomerShippingAddressFromBlockFailedTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Customer"/> |
| 13 | + <stories value="Update Customer Address"/> |
| 14 | + <title value="Update customer shipping address via the Storefront fails if validation is not passed"/> |
| 15 | + <description value="Update customer shipping address via the Storefront fails if validation is not passed"/> |
| 16 | + <severity value="MINOR"/> |
| 17 | + <testCaseId value="MC-43268"/> |
| 18 | + <group value="customer"/> |
| 19 | + <group value="update"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="US_Address_TX_Default_Billing_With_Long_Line_Apartment" stepKey="createCustomer"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <deleteData createDataKey="createCustomer" stepKey="DeleteCustomer"/> |
| 26 | + </after> |
| 27 | + |
| 28 | + <!--Log in to Storefront as Customer 1 --> |
| 29 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUp"> |
| 30 | + <argument name="Customer" value="$createCustomer$"/> |
| 31 | + </actionGroup> |
| 32 | + <amOnPage url="{{StorefrontCustomerAddressesPage.url}}" stepKey="OpenCustomerAddNewAddress"/> |
| 33 | + <waitForElementVisible selector="{{StorefrontCustomerAddressesSection.editDefaultShippingAddress}}" stepKey="waitForChangeShippingAddressLinkVisible"/> |
| 34 | + <click selector="{{StorefrontCustomerAddressesSection.editDefaultShippingAddress}}" stepKey="ClickEditDefaultShippingAddress"/> |
| 35 | + <fillField userInput="{{US_Address_TX_Default_Billing_With_Long_Line_Apartment.street}}" selector="{{StorefrontCustomerAddressFormSection.firstName}}" stepKey="fillStreetTwoLines"/> |
| 36 | + <click selector="{{StorefrontCustomerAddressFormSection.saveAddress}}" stepKey="saveCustomerAddress"/> |
| 37 | + <waitForElementVisible stepKey="waitForErrorAppears" selector="{{StorefrontMessagesSection.error}}"/> |
| 38 | + <see selector="{{StorefrontMessagesSection.error}}" userInput='Please enter less or equal than 10 symbols.' stepKey="seeErrorMessages"/> |
| 39 | + <fillField userInput="{{US_Address_TX_Default_Billing.street}}" selector="{{StorefrontCustomerAddressFormSection.firstName}}" stepKey="fillStreetLine"/> |
| 40 | + <waitForElementVisible selector="{{StorefrontMessagesSection.success}}" stepKey="waitForSuccessMessageVisible"/> |
| 41 | + <see userInput="You saved the address." selector="{{StorefrontMessagesSection.success}}" stepKey="verifyAddressAdded"/> |
| 42 | + </test> |
| 43 | +</tests> |
0 commit comments