|
20 | 20 | <group value="Catalog"/>
|
21 | 21 | </annotations>
|
22 | 22 | <before>
|
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" /> |
23 | 24 | <createData entity="SimpleProduct2" stepKey="createProduct"/>
|
| 25 | + <!-- open product edit page --> |
| 26 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage"> |
| 27 | + <argument name="productId" value="$$createProduct.id$$"/> |
| 28 | + </actionGroup> |
| 29 | + <!-- Create a custom option(radio button) with 2 values --> |
| 30 | + <click stepKey="openCustomizableOptions" selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}"/> |
| 31 | + <waitForPageLoad stepKey="waitForCustomOptionsOpen"/> |
| 32 | + <actionGroup ref="CreateCustomRadioOptionsActionGroup" stepKey="createCustomOption1"> |
| 33 | + <argument name="customOptionName" value="ProductOptionRadiobutton.title"/> |
| 34 | + <argument name="productOption" value="ProductOptionField"/> |
| 35 | + <argument name="productOption2" value="ProductOptionField2"/> |
| 36 | + </actionGroup> |
| 37 | + <!-- Save the product --> |
| 38 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/> |
| 39 | + <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccess"/> |
| 40 | + <!-- indexer reindex --> |
| 41 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 42 | + <argument name="indices" value=""/> |
| 43 | + </actionGroup> |
24 | 44 | </before>
|
25 | 45 | <after>
|
26 | 46 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
| 47 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
27 | 48 | </after>
|
28 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" /> |
29 |
| - <!-- open product edit page --> |
30 |
| - <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage"> |
31 |
| - <argument name="productId" value="$$createProduct.id$$"/> |
32 |
| - </actionGroup> |
33 |
| - <!-- Create a custom option(radio button) with 2 values --> |
34 |
| - <click stepKey="openCustomizableOptions" selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}"/> |
35 |
| - <waitForPageLoad stepKey="waitForCustomOptionsOpen"/> |
36 |
| - <actionGroup ref="CreateCustomRadioOptionsActionGroup" stepKey="createCustomOption1"> |
37 |
| - <argument name="customOptionName" value="ProductOptionRadiobutton.title"/> |
38 |
| - <argument name="productOption" value="ProductOptionField"/> |
39 |
| - <argument name="productOption2" value="ProductOptionField2"/> |
40 |
| - </actionGroup> |
41 |
| - <!-- Save the product --> |
42 |
| - <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/> |
43 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccess"/> |
44 |
| - <!-- indexer reindex --> |
45 |
| - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
46 |
| - <argument name="indices" value=""/> |
47 |
| - </actionGroup> |
48 | 49 | <!-- Navigate to Product Page on StoreFront -->
|
49 | 50 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openStorefrontProductPage">
|
50 | 51 | <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/>
|
|
0 commit comments