|
19 | 19 | <group value="ConfigurableProduct"/>
|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 |
| - <!-- Login as Admin --> |
23 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
24 | 22 | <!-- Create default category with subcategory -->
|
25 | 23 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
26 | 24 | <createData entity="SubCategoryWithParent" stepKey="createSubcategory">
|
|
70 | 68 | <createData entity="productAttributeOption4" stepKey="createConfigProductAttributeOption8">
|
71 | 69 | <requiredEntity createDataKey="createConfigProductAttribute2"/>
|
72 | 70 | </createData>
|
| 71 | + <!-- Login as Admin --> |
| 72 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
73 | 73 | <!-- Add created attributes with options to Attribute Set -->
|
74 | 74 | <actionGroup ref="AdminAddUnassignedAttributeToGroup" stepKey="createDefaultAttributeSet">
|
75 | 75 | <argument name="label" value="mySet"/>
|
|
89 | 89 | <actionGroup ref="deleteAttributeSetByLabel" stepKey="deleteAttributeSet">
|
90 | 90 | <argument name="label" value="mySet"/>
|
91 | 91 | </actionGroup>
|
| 92 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearAttributeSetsFilter"/> |
92 | 93 | <!-- Delete First attribute -->
|
93 |
| - <actionGroup ref="SearchAttributeByCodeOnProductAttributeGridActionGroup" stepKey="searchAttributeByCodeOnProductAttributeGrid"> |
94 |
| - <argument name="productAttributeCode" value="$$createConfigProductAttribute.attribute_code$$"/> |
95 |
| - </actionGroup> |
96 | 94 | <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openProductAttributeFromSearchResultInGrid">
|
97 | 95 | <argument name="productAttributeCode" value="$$createConfigProductAttribute.attribute_code$$"/>
|
98 | 96 | </actionGroup>
|
99 | 97 | <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttributeByAttributeCode">
|
100 | 98 | <argument name="productAttributeCode" value="$$createConfigProductAttribute.attribute_code$$"/>
|
101 | 99 | </actionGroup>
|
102 | 100 | <!-- Delete Second attribute -->
|
103 |
| - <actionGroup ref="SearchAttributeByCodeOnProductAttributeGridActionGroup" stepKey="searchSecondAttributeByCodeOnProductAttributeGrid"> |
104 |
| - <argument name="productAttributeCode" value="$$createConfigProductAttribute2.attribute_code$$"/> |
105 |
| - </actionGroup> |
106 | 101 | <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openSecondProductAttributeFromSearchResultInGrid">
|
107 | 102 | <argument name="productAttributeCode" value="$$createConfigProductAttribute2.attribute_code$$"/>
|
108 | 103 | </actionGroup>
|
109 | 104 | <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteSecondProductAttributeByAttributeCode">
|
110 | 105 | <argument name="productAttributeCode" value="$$createConfigProductAttribute2.attribute_code$$"/>
|
111 | 106 | </actionGroup>
|
| 107 | + <!-- Clear filters --> |
| 108 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearProductAttributesFilter"/> |
| 109 | + <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductsGridFilter"/> |
112 | 110 | <!-- Log out -->
|
113 | 111 | <actionGroup ref="logout" stepKey="logout"/>
|
114 | 112 | </after>
|
115 | 113 | <!-- Create three configurable products with options -->
|
116 | 114 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/>
|
117 | 115 | <waitForPageLoad time="30" stepKey="wait1"/>
|
118 | 116 | <!-- Edit created first product as configurable product with options -->
|
| 117 | + <actionGroup ref="filterProductGridBySku" stepKey="filterGridByFirstProduct"> |
| 118 | + <argument name="product" value="$$createFirstConfigurableProduct$$"/> |
| 119 | + </actionGroup> |
119 | 120 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductFirst">
|
120 | 121 | <argument name="product" value="$$createFirstConfigurableProduct$$"/>
|
121 | 122 | </actionGroup>
|
|
135 | 136 | <waitForPageLoad stepKey="waitForMessage"/>
|
136 | 137 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageFirst"/>
|
137 | 138 | <!-- Edit created second product as configurable product with options -->
|
| 139 | + <actionGroup ref="filterProductGridBySku" stepKey="filterGridBySecondProduct"> |
| 140 | + <argument name="product" value="$$createSecondConfigurableProduct$$"/> |
| 141 | + </actionGroup> |
138 | 142 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductSecond">
|
139 | 143 | <argument name="product" value="$$createSecondConfigurableProduct$$"/>
|
140 | 144 | </actionGroup>
|
|
155 | 159 | <waitForPageLoad stepKey="waitForSuccessMessage"/>
|
156 | 160 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageSecond"/>
|
157 | 161 | <!-- Edit created third product as configurable product with options -->
|
| 162 | + <actionGroup ref="filterProductGridBySku" stepKey="filterGridByThirdProduct"> |
| 163 | + <argument name="product" value="$$createThirdConfigurableProduct$$"/> |
| 164 | + </actionGroup> |
158 | 165 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductThird">
|
159 | 166 | <argument name="product" value="$$createThirdConfigurableProduct$$"/>
|
160 | 167 | </actionGroup>
|
|
174 | 181 | <waitForPageLoad stepKey="waitForProductPage"/>
|
175 | 182 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveConfigurableProductMessage"/>
|
176 | 183 | <!-- Create Simple product with options -->
|
| 184 | + <actionGroup ref="filterProductGridBySku" stepKey="filterGridBySimpleProduct"> |
| 185 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 186 | + </actionGroup> |
177 | 187 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditSimpleProduct">
|
178 | 188 | <argument name="product" value="$$createSimpleProduct$$"/>
|
179 | 189 | </actionGroup>
|
|
0 commit comments