File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed
app/code/Magento/Customer/Test/Mftf
Test/StorefrontUpdateCustomerAddressTest Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 17
17
<argument name =" minimumTextLength" type =" string" defaultValue =" 1" />
18
18
<argument name =" maximumTextLength" type =" string" defaultValue =" 255" />
19
19
</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" />
20
32
<!-- Update customer attribute properties-->
21
33
<fillField selector =" {{AdminCustomerAddressPropertySection.minTextLength}}" userInput =" {{minimumTextLength}}" stepKey =" minimumTextLength" />
22
34
<fillField selector =" {{AdminCustomerAddressPropertySection.maxTextLength}}" userInput =" {{maximumTextLength}}" stepKey =" maximumTextLength" />
Original file line number Diff line number Diff line change 21
21
<before >
22
22
<createData entity =" Simple_Customer_Without_Address" stepKey =" createCustomer" />
23
23
<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" />
32
24
<actionGroup ref =" AdminEditCustomerAddressAttributePropertiesActionGroup" stepKey =" editCustomerAddressProperties" >
33
25
<argument name =" minimumTextLength" value =" 1" />
34
26
<argument name =" maximumTextLength" value =" 10" />
35
27
</actionGroup >
36
28
</before >
37
29
<after >
38
30
<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 >
40
35
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
41
36
</after >
42
37
<!-- Log in to Storefront as Customer 1 -->
You can’t perform that action at this time.
0 commit comments