|
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 |
| - xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
10 | 10 | <test name="StorefrontUpdateCustomerShippingAddressFromBlockFailedTest">
|
11 | 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"/> |
| 12 | + <features value="Customer address"/> |
| 13 | + <stories value="JS validation error doesn't work for the 2nd line of the street attribute"/> |
| 14 | + <title value="JS validation error does not work for the 2nd line of the street attribute"/> |
| 15 | + <description value="Storefront user should be able to see error for 2nd line of the street attribute if length more than maximum text length property value."/> |
| 16 | + <severity value="AVERAGE"/> |
17 | 17 | <testCaseId value="MC-43268"/>
|
| 18 | + <useCaseId value="ACP2E-197"/> |
18 | 19 | <group value="customer"/>
|
19 |
| - <group value="update"/> |
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 |
| - <createData entity="US_Address_TX_Default_Billing_With_Long_Line_Apartment" stepKey="createCustomer"/> |
| 22 | + <createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/> |
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
23 | 24 | </before>
|
24 | 25 | <after>
|
25 | 26 | <deleteData createDataKey="createCustomer" stepKey="DeleteCustomer"/>
|
| 27 | + <actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressProperties"> |
| 28 | + <argument name="minimumTextLength" value="1"/> |
| 29 | + <argument name="maximumTextLength" value="255"/> |
| 30 | + </actionGroup> |
| 31 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
26 | 32 | </after>
|
27 |
| - |
| 33 | + <actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressProperties"> |
| 34 | + <argument name="minimumTextLength" value="1"/> |
| 35 | + <argument name="maximumTextLength" value="10"/> |
| 36 | + </actionGroup> |
28 | 37 | <!--Log in to Storefront as Customer 1 -->
|
29 | 38 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUp">
|
30 |
| - <argument name="Customer" value="$createCustomer$"/> |
| 39 | + <argument name="Customer" value="$$createCustomer$$"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="EnterCustomerAddressInfoActionGroup" stepKey="AddNewAddress"> |
| 42 | + <argument name="Address" value="US_Address_TX_Default_Billing_With_Long_Line_Apartment"/> |
31 | 43 | </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"/> |
| 44 | + <see userInput='"Street Address" length must be equal or less than 10 characters.' selector='{{StorefrontMessagesSection.error}}' stepKey='verifyAddressAdded'/> |
42 | 45 | </test>
|
43 | 46 | </tests>
|
0 commit comments