|
22 | 22 | <createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/>
|
23 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
|
24 | 24 | <!--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"/> |
34 | 31 | </actionGroup>
|
| 32 | + <click selector="{{AdminCustomerAddressAttributeSection.firstAttribute}}" stepKey="clickOnPrefixAttribute"/> |
| 33 | + <waitForPageLoad stepKey="waitForPrefixAttributePageLoad"/> |
35 | 34 | </before>
|
36 | 35 | <after>
|
37 | 36 | <deleteData createDataKey="createCustomer" stepKey="DeleteCustomer"/>
|
38 | 37 | <!--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> |
49 | 38 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
50 | 39 | </after>
|
51 | 40 | <!--Log in to Storefront as Customer 1 -->
|
|
0 commit comments