|
22 | 22 | <before>
|
23 | 23 | <!--Create product and customer-->
|
24 | 24 | <createData entity="SimpleProduct2" stepKey="createProduct"/>
|
25 |
| - <createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/> |
26 | 25 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
27 | 26 | <!--Create website, store group and store view-->
|
28 | 27 | <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createWebsite">
|
|
38 | 37 | <argument name="StoreGroup" value="customStoreGroup"/>
|
39 | 38 | <argument name="customStore" value="customStore"/>
|
40 | 39 | </actionGroup>
|
| 40 | + <!--Create customer associated to website--> |
| 41 | + <actionGroup ref="AdminGoCreatedWebsitePageActionGroup" stepKey="DeleteWebsite"> |
| 42 | + <argument name="websiteName" value="{{customWebsite.name}}"/> |
| 43 | + </actionGroup> |
| 44 | + <grabFromCurrentUrl regex="~/website_id/(\d+)/~" stepKey="grabWebsiteIdFromURL"/> |
| 45 | + <createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"> |
| 46 | + <field key="website_id">$grabWebsiteIdFromURL</field> |
| 47 | + </createData> |
41 | 48 | <!--Enable Table Rate method and import csv file-->
|
42 | 49 | <actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodConfigPage"/>
|
43 | 50 | <actionGroup ref="AdminSwitchWebsiteActionGroup" stepKey="switchDefaultWebsite">
|
|
81 | 88 | <argument name="website" value="{{customWebsite.name}}"/>
|
82 | 89 | </actionGroup>
|
83 | 90 | <actionGroup ref="saveProductForm" stepKey="saveProduct"/>
|
84 |
| - <!--Assign customer to custom website--> |
85 |
| - <actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="openCustomerEditPage"> |
86 |
| - <argument name="customerId" value="$$createCustomer.id$$"/> |
87 |
| - </actionGroup> |
88 |
| - <actionGroup ref="AdminAssociateCustomerToCustomWebsiteActionGroup" stepKey="associateCustomerToWebsite"> |
89 |
| - <argument name="websiteName" value="{{customWebsite.name}}"/> |
90 |
| - </actionGroup> |
91 |
| - <actionGroup ref="AdminSaveCustomerAndAssertSuccessMessage" stepKey="saveAndCheckSuccessMessage"/> |
92 | 91 | <!--Create order-->
|
93 | 92 | <actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrderWithExistingCustomer">
|
94 | 93 | <argument name="customer" value="$$createCustomer$$"/>
|
|
0 commit comments