|
20 | 20 | <group value="product"/>
|
21 | 21 | </annotations>
|
22 | 22 |
|
23 |
| - <!-- Login as admin --> |
| 23 | + <!-- Create Category And Login As Admin --> |
24 | 24 | <before>
|
25 | 25 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
| 26 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
26 | 27 | </before>
|
27 | 28 |
|
28 | 29 | <!-- Delete Created Products And Category Then Logout -->
|
29 | 30 | <after>
|
30 |
| - <!-- Before deleting first found product of 4 products that have the same name starting, |
31 |
| - delete 3 virtual products of them --> |
32 |
| - <actionGroup ref="DeleteProductOnProductsGridPageByFilteredName" stepKey="deleteVirtualProduct1"> |
33 |
| - <argument name="product" value="colorProductAttribute1"/> |
34 |
| - </actionGroup> |
35 |
| - <actionGroup ref="DeleteProductOnProductsGridPageByFilteredName" stepKey="deleteVirtualProduct2"> |
36 |
| - <argument name="product" value="colorProductAttribute2"/> |
37 |
| - </actionGroup> |
38 |
| - <actionGroup ref="DeleteProductOnProductsGridPageByFilteredName" stepKey="deleteVirtualProduct3"> |
39 |
| - <argument name="product" value="colorProductAttribute3"/> |
40 |
| - </actionGroup> |
41 |
| - |
42 |
| - <!-- Delete actually configurable product --> |
43 |
| - <actionGroup ref="DeleteProductOnProductsGridPageByName" stepKey="deleteCreatedProducts"> |
| 31 | + <!-- Delete all created products (including virtual) --> |
| 32 | + <actionGroup ref="DeleteAllProductsOnProductsGridPageFilteredByName" stepKey="deleteCreatedProductAttribute"> |
44 | 33 | <argument name="product" value="_defaultProduct"/>
|
45 | 34 | </actionGroup>
|
46 |
| - |
47 |
| - <!-- Tryna delete category via API --> |
48 |
| - <!--actionGroup ref="DeleteCategory" stepKey="deleteCreatedCategory"> |
49 |
| - <argument name="categoryEntity" value="_defaultCategory"/> |
50 |
| - </actionGroup--> |
51 |
| - |
52 |
| - <!-- Delete created product attribute --> |
53 |
| - <actionGroup ref="DeleteProductAttribute" stepKey="deleteCreatedProductAttribute"> |
54 |
| - <argument name="productAttribute" value="colorProductAttribute"/> |
55 |
| - </actionGroup> |
56 |
| - |
| 35 | + <!-- Logout --> |
57 | 36 | <actionGroup ref="logout" stepKey="logout"/>
|
58 |
| - |
| 37 | + <!-- Delete created category --> |
59 | 38 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
60 | 39 | </after>
|
61 | 40 |
|
62 |
| - <!-- Tryna create category via API --> |
63 |
| - <!--amOnPage url="{{AdminCategoryPage.url}}" stepKey="amOnCategoryGridPage"/> |
64 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
65 |
| - <click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/> |
66 |
| - <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="enterCategoryName"/> |
67 |
| - <click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="clickOnSeoSection"/> |
68 |
| - <fillField selector="{{AdminCategorySEOSection.UrlKeyInput}}" userInput="{{_defaultCategory.name_lwr}}" stepKey="enterUrlKey"/> |
69 |
| - <click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="clickOnSaveCategory"/> |
70 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccessMessage"/--> |
71 |
| - |
72 | 41 | <!-- Create configurable product... -->
|
73 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
74 | 42 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/>
|
75 | 43 | <waitForPageLoad time="30" stepKey="waitForPageLoad2"/>
|
76 | 44 | <click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickOnAddProductToggle"/>
|
|
0 commit comments