Skip to content

Commit 4e8cc45

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-197: JS validation error doesn't work for the 2nd line of the street attribute
1 parent c8abe81 commit 4e8cc45

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

app/code/Magento/Customer/Test/Mftf/Test/StorefrontUpdateCustomerAddressTest/StorefrontUpdateCustomerShippingAddressFromBlockFailedTest.xml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,19 @@
2222
<createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/>
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2424
<!--Go To Customer Address page-->
25-
<actionGroup ref="GoToCustomerAddress" stepKey="GoToCustomerAddress"/>
26-
<fillField selector="{{CustomerAccountSection.defaultLabel}}" userInput="Street Address" stepKey="TypeAttributeName"/>
27-
<click selector="{{CustomerAccountSection.search}}" stepKey="clickToSearchButton"/>
28-
<waitForPageLoad stepKey="waitForResult"/>
29-
<click selector="{{AdminCustomerAddressAttributeSection.firstAttribute}}" stepKey="clickToSelectAttribute"/>
30-
<waitForPageLoad stepKey="waitForAttributePageLoaded"/>
31-
<actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressProperties">
32-
<argument name="minimumTextLength" value="1"/>
33-
<argument name="maximumTextLength" value="10"/>
25+
<!-- Go to Stores > Customer Address -->
26+
<amOnPage url="{{CustomerAddressAttributesPage.url}}" stepKey="navigateToCustomerAddressAttributesPage"/>
27+
<waitForPageLoad stepKey="waitForCustomerAddressAttributePageLoad"/>
28+
<!-- Open 'prefix' attributes by its code -->
29+
<actionGroup ref="FilterCustomerAttributesByAttributeCodeActionGroup" stepKey="findPrefixAttribute">
30+
<argument name="attributeCode" value="street"/>
3431
</actionGroup>
32+
<click selector="{{AdminCustomerAddressAttributeSection.firstAttribute}}" stepKey="clickOnPrefixAttribute"/>
33+
<waitForPageLoad stepKey="waitForPrefixAttributePageLoad"/>
3534
</before>
3635
<after>
3736
<deleteData createDataKey="createCustomer" stepKey="DeleteCustomer"/>
3837
<!--Go To Customer Address page-->
39-
<actionGroup ref="GoToCustomerAddress" stepKey="GoToCustomerAddress1"/>
40-
<fillField selector="{{CustomerAccountSection.defaultLabel}}" userInput="Street Address" stepKey="TypeAttributeName1"/>
41-
<click selector="{{CustomerAccountSection.search}}" stepKey="clickToSearchButton1"/>
42-
<waitForPageLoad stepKey="waitForResult1"/>
43-
<click selector="{{AdminCustomerAddressAttributeSection.firstAttribute}}" stepKey="clickToSelectAttribute1"/>
44-
<waitForPageLoad stepKey="waitForAttributePageLoaded"/>
45-
<actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressProperties1">
46-
<argument name="minimumTextLength" value="1"/>
47-
<argument name="maximumTextLength" value="255"/>
48-
</actionGroup>
4938
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
5039
</after>
5140
<!--Log in to Storefront as Customer 1 -->

0 commit comments

Comments
 (0)