|
34 | 34 |
|
35 | 35 | <!-- Set "Show Date of Birth" to Required and save in default config scope --> |
36 | 36 | <actionGroup ref="AdminCheckUseSystemValueActionGroup" stepKey="checkUseSystemValue"> |
37 | | - <argument name="rowId" value="row_customer_address_dob_show"/> |
| 37 | + <argument name="rowId" value="row_customer_address_company_show"/> |
38 | 38 | </actionGroup> |
39 | 39 | <click selector="{{StoreConfigSection.Save}}" stepKey="saveConfig"/> |
40 | 40 |
|
|
50 | 50 | <actionGroup ref="AdminExpandConfigSectionActionGroup" stepKey="expandConfigSectionDefaultScope"> |
51 | 51 | <argument name="sectionName" value="{{CustomerConfigurationSectionNameAndAddressOptions.title}}"/> |
52 | 52 | </actionGroup> |
53 | | - <!-- Set "Show Date of Birth" to Required and save in default config scope --> |
54 | | - <actionGroup ref="AdminCustomerShowDateOfBirthActionGroup" stepKey="setShowDateOfBirthRequiredDefaultScope"> |
55 | | - <argument name="value" value="{{ShowDateOfBirth.required}}"/> |
| 53 | + <!-- Set "Show Company" to Required and save in default config scope --> |
| 54 | + <actionGroup ref="AdminCustomerShowCompanyActionGroup" stepKey="setShowCompanyRequiredDefaultScope"> |
| 55 | + <argument name="value" value="{{ShowCompany.required}}"/> |
56 | 56 | </actionGroup> |
57 | 57 |
|
58 | 58 | <!-- Open the customer edit page --> |
59 | 59 | <actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="goToCustomerEditPage"> |
60 | 60 | <argument name="customerId" value="$createCustomer.id$"/> |
61 | 61 | </actionGroup> |
62 | | - <!-- Switch the information tab --> |
63 | | - <actionGroup ref="AdminOpenAccountInformationTabFromCustomerEditPageActionGroup" stepKey="openInformationTab"/> |
64 | | - <!-- Fill the dob --> |
65 | | - <fillField userInput="{{CustomerEntityOne.dob}}" selector="{{AdminCustomerAccountInformationSection.dateOfBirth}}" stepKey="fillDateOfBirth"/> |
| 62 | + <!-- Switch the addresses tab --> |
| 63 | + <actionGroup ref="AdminOpenAddressesTabFromCustomerEditPageActionGroup" stepKey="openAddressesTab"/> |
| 64 | + <!-- Click "Add New Address" --> |
| 65 | + <actionGroup ref="AdminClickAddNewAddressButtonOnCustomerAddressesTabActionGroup" stepKey="clickAddNewAddressButton"/> |
| 66 | + <!-- Fill address --> |
| 67 | + <actionGroup ref="AdminFillAndSaveCustomerAddressInformationActionGroup" stepKey="fillAndSaveCustomerAddressInformationActionGroup"> |
| 68 | + <argument name="address" value="US_Address_TX"/> |
| 69 | + </actionGroup> |
66 | 70 | <!-- Assert that the address is successfully added --> |
67 | 71 | <actionGroup stepKey="saveAndContinue" ref="AdminCustomerSaveAndContinue"/> |
68 | 72 |
|
|
72 | 76 | <actionGroup ref="AdminExpandConfigSectionActionGroup" stepKey="expandConfigSectionDefaultScopeAgain"> |
73 | 77 | <argument name="sectionName" value="{{CustomerConfigurationSectionNameAndAddressOptions.title}}"/> |
74 | 78 | </actionGroup> |
75 | | - <!-- Set "Show Date of Birth" to Required and save in default config scope --> |
76 | | - <actionGroup ref="AdminCheckUseSystemValueActionGroup" stepKey="checkUseSystemValue"> |
77 | | - <argument name="rowId" value="row_customer_address_dob_show"/> |
| 79 | + <!-- Set "Show Company" to Required and save in default config scope --> |
| 80 | + <actionGroup ref="AdminCheckUseSystemValueActionGroup" stepKey="checkCompanyUseSystemValue"> |
| 81 | + <argument name="rowId" value="row_customer_address_company_show"/> |
78 | 82 | </actionGroup> |
| 83 | + |
79 | 84 | <click selector="{{StoreConfigSection.Save}}" stepKey="saveConfig"/> |
80 | 85 | <!-- Open the customer edit page --> |
81 | 86 | <actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="goToCustomerEditPageAgain"> |
82 | 87 | <argument name="customerId" value="$createCustomer.id$"/> |
83 | 88 | </actionGroup> |
84 | | - <!-- Switch the information tab --> |
85 | | - <actionGroup ref="AdminOpenAccountInformationTabFromCustomerEditPageActionGroup" stepKey="openInformationTabAgain"/> |
86 | | - <!-- Fill the dob --> |
87 | | - <fillField userInput="" selector="{{AdminCustomerAccountInformationSection.dateOfBirth}}" stepKey="fillDateOfBirthAgain"/> |
| 89 | + <!-- Switch the addresses tab --> |
| 90 | + <actionGroup ref="AdminOpenAddressesTabFromCustomerEditPageActionGroup" stepKey="openAddressesTabAgain"/> |
| 91 | + <!-- Click "Add New Address" --> |
| 92 | + <actionGroup ref="AdminClickAddNewAddressButtonOnCustomerAddressesTabActionGroup" stepKey="clickAddNewAddressButtonAgain"/> |
| 93 | + <!-- Fill address --> |
| 94 | + <actionGroup ref="AdminFillAndSaveCustomerAddressInformationActionGroup" stepKey="fillAndSaveCustomerAddressInformationActionGroupAgain"> |
| 95 | + <argument name="address" value="addressNoCompany"/> |
| 96 | + </actionGroup> |
88 | 97 | <!-- Assert that the address is successfully added --> |
89 | 98 | <actionGroup stepKey="saveAndContinueAgain" ref="AdminCustomerSaveAndContinue"/> |
90 | 99 | </test> |
|
0 commit comments