|
24 | 24 | </before> |
25 | 25 | <after> |
26 | 26 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
27 | | - <actionGroup ref="logout" stepKey="logout"/> |
28 | | - |
| 27 | + <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteConfigurableProduct"> |
| 28 | + <argument name="sku" value="{{BaseConfigurableProduct.sku}}"/> |
| 29 | + </actionGroup> |
| 30 | + <actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute"/> |
| 31 | + <actionGroup ref="NavigateToAndResetProductAttributeGridToDefaultViewActionGroup" stepKey="resetProductAttributeFilters"/> |
| 32 | + <actionGroup ref="logout" stepKey="logoutFromAdmin"/> |
29 | 33 | <!-- Reindex invalidated indices after product attribute has been created/deleted --> |
30 | 34 | <actionGroup ref="CliRunReindexUsingCronJobsActionGroup" stepKey="reindexInvalidatedIndices"/> |
31 | 35 | </after> |
|
99 | 103 | </assertContains> |
100 | 104 |
|
101 | 105 | <!-- Create a configurable product to verify the storefront with --> |
102 | | - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/> |
103 | | - <waitForPageLoad time="30" stepKey="waitForProductGrid"/> |
104 | | - <actionGroup ref="GoToCreateProductPageActionGroup" stepKey="goToCreateConfigurableProduct"> |
105 | | - <argument name="product" value="BaseConfigurableProduct"/> |
106 | | - </actionGroup> |
| 106 | + <amOnPage url="{{AdminProductCreatePage.url(BaseConfigurableProduct.attribute_set_id, BaseConfigurableProduct.type_id)}}" stepKey="goToCreateConfigurableProduct"/> |
107 | 107 | <actionGroup ref="FillMainProductFormActionGroup" stepKey="fillProductForm"> |
108 | 108 | <argument name="product" value="BaseConfigurableProduct"/> |
109 | 109 | </actionGroup> |
110 | | - <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory"/> |
| 110 | + <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$createCategory.name$]" stepKey="fillCategory"/> |
111 | 111 |
|
112 | 112 | <!-- Create configurations based off the Image Swatch we created earlier --> |
113 | 113 | <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickCreateConfigurations"/> |
|
147 | 147 | </assertContains> |
148 | 148 |
|
149 | 149 | <!-- Go to the product listing page and see text swatch options --> |
150 | | - <amOnPage url="$$createCategory.name$$.html" stepKey="goToCategoryPageStorefront"/> |
| 150 | + <amOnPage url="$createCategory.custom_attributes[url_key]$.html" stepKey="goToCategoryPageStorefront"/> |
151 | 151 | <waitForPageLoad stepKey="waitForProductListingPage"/> |
152 | 152 |
|
153 | 153 | <!-- Verify the storefront --> |
|
0 commit comments