Skip to content

Commit 81a51f6

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 adbacd3 commit 81a51f6

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminEditCustomerAddressAttributePropertiesActionGroup.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@
1717
<argument name="minimumTextLength" type="string" defaultValue="1"/>
1818
<argument name="maximumTextLength" type="string" defaultValue="255"/>
1919
</arguments>
20+
<!--Go To Customer Address page-->
21+
<click selector="{{AdminCustomerAddressPropertySection.stores}}" stepKey="GoToStores"/>
22+
<waitForPageLoad stepKey="WaitForStoresLoaded"/>
23+
<click selector="{{AdminCustomerAddressPropertySection.customerAddress}}" stepKey="GoToCustomerAddress"/>
24+
<waitForPageLoad stepKey="WaitForCustomerAddressIsOpened"/>
25+
<seeInCurrentUrl url="customer_address_attribute" stepKey="verifyPageIsOpened"/>
26+
<waitForElementVisible selector="{{AdminCustomerAddressPropertySection.defaultLabel}}" stepKey="waitForDefaultLabelToVisible"/>
27+
<fillField selector="{{AdminCustomerAddressPropertySection.defaultLabel}}" userInput="Street Address" stepKey="TypeAttributeName"/>
28+
<click selector="{{AdminCustomerAddressPropertySection.search}}" stepKey="clickToSearchButton"/>
29+
<waitForPageLoad stepKey="waitForResult"/>
30+
<click selector="{{AdminCustomerAddressPropertySection.firstRowInGrid}}" stepKey="clickToSelectAttribute"/>
31+
<waitForPageLoad stepKey="waitForAttributePageLoaded"/>
2032
<!--Update customer attribute properties-->
2133
<fillField selector="{{AdminCustomerAddressPropertySection.minTextLength}}" userInput="{{minimumTextLength}}" stepKey="minimumTextLength"/>
2234
<fillField selector="{{AdminCustomerAddressPropertySection.maxTextLength}}" userInput="{{maximumTextLength}}" stepKey="maximumTextLength"/>

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,17 @@
2121
<before>
2222
<createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/>
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
24-
<!--Go To Customer Address page-->
25-
<actionGroup ref="GoToCustomerAddress" stepKey="GoToCustomerAddress1"/>
26-
<waitForElementVisible selector="{{AdminCustomerAddressPropertySection.defaultLabel}}" stepKey="waitForDefaultLabelToVisible"/>
27-
<fillField selector="{{AdminCustomerAddressPropertySection.defaultLabel}}" userInput="Street Address" stepKey="TypeAttributeName"/>
28-
<click selector="{{AdminCustomerAddressPropertySection.search}}" stepKey="clickToSearchButton"/>
29-
<waitForPageLoad stepKey="waitForResult"/>
30-
<click selector="{{AdminCustomerAddressPropertySection.firstRowInGrid}}" stepKey="clickToSelectAttribute"/>
31-
<waitForPageLoad stepKey="waitForAttributePageLoaded"/>
3224
<actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressProperties">
3325
<argument name="minimumTextLength" value="1"/>
3426
<argument name="maximumTextLength" value="10"/>
3527
</actionGroup>
3628
</before>
3729
<after>
3830
<deleteData createDataKey="createCustomer" stepKey="DeleteCustomer"/>
39-
<!--Go To Customer Address page-->
31+
<actionGroup ref="AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey="editCustomerAddressPropertiesRollBack">
32+
<argument name="minimumTextLength" value="1"/>
33+
<argument name="maximumTextLength" value="255"/>
34+
</actionGroup>
4035
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
4136
</after>
4237
<!--Log in to Storefront as Customer 1 -->

0 commit comments

Comments
 (0)