|
50 | 50 | <deleteData createDataKey="category4" stepKey="deleteCategory4"/>
|
51 | 51 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
52 | 52 | </after>
|
| 53 | + |
| 54 | + <!-- Reindex invalidated indices after product attribute has been created/deleted --> |
| 55 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices"> |
| 56 | + <argument name="indices" value=""/> |
| 57 | + </actionGroup> |
| 58 | + |
53 | 59 | <!--Open Storefront home page-->
|
54 | 60 | <comment userInput="Open Storefront home page" stepKey="openStorefrontHomePage"/>
|
55 | 61 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontHomePage"/>
|
56 | 62 | <!--Click on first category-->
|
57 | 63 | <comment userInput="Click on first category" stepKey="openFirstCategoryPage"/>
|
58 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$category1.name$$)}}" stepKey="clickCategory1Name"/> |
| 64 | + <click selector="{{AdminCategorySidebarTreeSection.categoryInFrontendTree($$category1.name$$)}}" stepKey="clickCategory1Name"/> |
59 | 65 | <waitForPageLoad stepKey="waitForCategory1Page"/>
|
60 | 66 | <!--Check if current category is highlighted and the others are not-->
|
61 | 67 | <comment userInput="Check if current category is highlighted and the others are not" stepKey="checkCateg1NameIsHighlighted"/>
|
62 | 68 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$category1.name$$)}}" userInput="class" stepKey="grabCategory1Class"/>
|
63 | 69 | <assertStringContainsString stepKey="assertCategory1IsHighlighted">
|
64 |
| - <actualResult type="const">$grabCategory1Class</actualResult> |
65 |
| - <expectedResult type="string">active</expectedResult> |
| 70 | + <actualResult type="const">$grabCategory1Class</actualResult> |
| 71 | + <expectedResult type="string">active</expectedResult> |
66 | 72 | </assertStringContainsString>
|
67 | 73 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedAmount"/>
|
68 | 74 | <assertEquals stepKey="assertRestCategories1IsNotHighlighted">
|
69 |
| - <actualResult type="const">$highlightedAmount</actualResult> |
70 |
| - <expectedResult type="int">1</expectedResult> |
| 75 | + <actualResult type="const">$highlightedAmount</actualResult> |
| 76 | + <expectedResult type="int">1</expectedResult> |
71 | 77 | </assertEquals>
|
72 | 78 | <!--See products in the category page-->
|
73 | 79 | <comment userInput="See products in the category page" stepKey="seeProductsInCategoryPage"/>
|
74 | 80 | <seeElement selector="{{StorefrontCategoryMainSection.specifiedProductItemInfo($product1.name$)}}" stepKey="seeProduct1InCategoryPage"/>
|
75 | 81 | <seeElement selector="{{StorefrontCategoryMainSection.specifiedProductItemInfo($product2.name$)}}" stepKey="seeProduct2InCategoryPage"/>
|
76 | 82 | <!--Click on second category-->
|
77 | 83 | <comment userInput="Click on second category" stepKey="openSecondCategoryPage"/>
|
78 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$category2.name$$)}}" stepKey="clickCategory2Name"/> |
| 84 | + <click selector="{{AdminCategorySidebarTreeSection.categoryInFrontendTree($$category2.name$$)}}" stepKey="clickCategory2Name"/> |
79 | 85 | <waitForPageLoad stepKey="waitForCategory2Page"/>
|
80 | 86 | <!--Check if current category is highlighted and the others are not-->
|
81 | 87 | <comment userInput="Check if current category is highlighted and the others are not" stepKey="checkCateg2NameIsHighlighted"/>
|
82 | 88 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$category2.name$$)}}" userInput="class" stepKey="grabCategory2Class"/>
|
83 | 89 | <assertStringContainsString stepKey="assertCategory2IsHighlighted">
|
84 |
| - <actualResult type="const">$grabCategory2Class</actualResult> |
85 |
| - <expectedResult type="string">active</expectedResult> |
| 90 | + <actualResult type="const">$grabCategory2Class</actualResult> |
| 91 | + <expectedResult type="string">active</expectedResult> |
86 | 92 | </assertStringContainsString>
|
87 | 93 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedAmount2"/>
|
88 | 94 | <assertEquals stepKey="assertRestCategories1IsNotHighlighted2">
|
89 |
| - <actualResult type="const">$highlightedAmount2</actualResult> |
90 |
| - <expectedResult type="int">1</expectedResult> |
| 95 | + <actualResult type="const">$highlightedAmount2</actualResult> |
| 96 | + <expectedResult type="int">1</expectedResult> |
91 | 97 | </assertEquals>
|
92 | 98 | <!--Assert products in second category page-->
|
93 | 99 | <comment userInput="Assert products in second category page" stepKey="commentAssertProducts"/>
|
|
0 commit comments