|
12 | 12 | <annotations>
|
13 | 13 | <features value="Catalog"/>
|
14 | 14 | <stories value="Category Navigation Highlighting with Store Code in URLs"/>
|
15 |
| - <title value="Verify category highlighting in navigation with store code in URLs and URL suffixes"/> |
| 15 | + <title value="Category highlighting in navigation with store code in URLs and URL suffixes"/> |
16 | 16 | <description value="Correct category should be highlighted in the navigation menu when navigating through categories and products on the storefront based on store code"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="AC-10852"/>
|
|
113 | 113 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat11.name$$)}}" userInput="class" stepKey="grabCat11Class"/>
|
114 | 114 | <assertStringContainsString stepKey="assertCat11IsHighlighted">
|
115 | 115 | <actualResult type="const">$grabCat11Class</actualResult>
|
116 |
| - <expectedResult type="string">active</expectedResult> |
| 116 | + <expectedResult type="string">{{CategoryClassStatus.scope}}</expectedResult> |
117 | 117 | </assertStringContainsString>
|
118 | 118 | <!-- Verify parent Cat 1 has 'has-active' class -->
|
119 | 119 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat1.name$$)}}" userInput="class" stepKey="grabCat1ParentClass"/>
|
120 | 120 | <assertStringContainsString stepKey="assertCat1HasActiveClass">
|
121 | 121 | <actualResult type="const">$grabCat1ParentClass</actualResult>
|
122 |
| - <expectedResult type="string">has-active</expectedResult> |
| 122 | + <expectedResult type="string">{{CategoryClassStatus.value}}</expectedResult> |
123 | 123 | </assertStringContainsString>
|
124 | 124 | <!-- Verify Cat 1.1 is highlighted with active class -->
|
125 | 125 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedCategoryAmount_Try2"/>
|
|
139 | 139 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat11.name$$)}}" userInput="class" stepKey="grabCat11ClassOnProduct"/>
|
140 | 140 | <assertStringContainsString stepKey="assertCat11IsHighlightedOnProduct">
|
141 | 141 | <actualResult type="const">$grabCat11ClassOnProduct</actualResult>
|
142 |
| - <expectedResult type="string">active</expectedResult> |
| 142 | + <expectedResult type="string">{{CategoryClassStatus.scope}}</expectedResult> |
143 | 143 | </assertStringContainsString>
|
144 | 144 | <!-- Verify parent Cat 1 still has 'has-active' class -->
|
145 | 145 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat1.name$$)}}" userInput="class" stepKey="grabCat1ParentClassOnProduct"/>
|
146 | 146 | <assertStringContainsString stepKey="assertCat1HasActiveClassOnProduct">
|
147 | 147 | <actualResult type="const">$grabCat1ParentClassOnProduct</actualResult>
|
148 |
| - <expectedResult type="string">has-active</expectedResult> |
| 148 | + <expectedResult type="string">{{CategoryClassStatus.value}}</expectedResult> |
149 | 149 | </assertStringContainsString>
|
150 | 150 | <!-- Verify Cat 1.1 is still highlighted -->
|
151 | 151 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedCategoryAmount_Try3"/>
|
|
174 | 174 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat12.name$$)}}" userInput="class" stepKey="grabCat12Class"/>
|
175 | 175 | <assertStringContainsString stepKey="assertCat12IsHighlighted">
|
176 | 176 | <actualResult type="const">$grabCat12Class</actualResult>
|
177 |
| - <expectedResult type="string">active</expectedResult> |
| 177 | + <expectedResult type="string">{{CategoryClassStatus.scope}}</expectedResult> |
178 | 178 | </assertStringContainsString>
|
179 | 179 | <!-- Verify parent Cat 1 has 'has-active' class -->
|
180 | 180 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat1.name$$)}}" userInput="class" stepKey="grabCat1ParentClassForCat12"/>
|
181 | 181 | <assertStringContainsString stepKey="assertCat1HasActiveClassForCat12">
|
182 | 182 | <actualResult type="const">$grabCat1ParentClassForCat12</actualResult>
|
183 |
| - <expectedResult type="string">has-active</expectedResult> |
| 183 | + <expectedResult type="string">{{CategoryClassStatus.value}}</expectedResult> |
184 | 184 | </assertStringContainsString>
|
185 | 185 | <!-- Verify Cat 1.2 is highlighted with active class -->
|
186 | 186 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedCategoryAmount_Try5"/>
|
|
201 | 201 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat1.name$$)}}" userInput="class" stepKey="grabCat1ParentClassDirectNav"/>
|
202 | 202 | <assertStringContainsString stepKey="assertCat1HasActiveClassDirectNav">
|
203 | 203 | <actualResult type="const">$grabCat1ParentClassDirectNav</actualResult>
|
204 |
| - <expectedResult type="string">has-active</expectedResult> |
| 204 | + <expectedResult type="string">{{CategoryClassStatus.value}}</expectedResult> |
205 | 205 | </assertStringContainsString>
|
206 | 206 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat12.name$$)}}" userInput="class" stepKey="grabCat12ClassDirect"/>
|
207 | 207 | <assertStringContainsString stepKey="assertCat12IsHighlightedDirect">
|
208 | 208 | <actualResult type="const">$grabCat12ClassDirect</actualResult>
|
209 |
| - <expectedResult type="string">active</expectedResult> |
| 209 | + <expectedResult type="string">{{CategoryClassStatus.scope}}</expectedResult> |
210 | 210 | </assertStringContainsString>
|
211 | 211 | <!-- Verify Cat 1.2 is highlighted after direct navigation -->
|
212 | 212 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedCategoryAmount_Try6"/>
|
|
226 | 226 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat12.name$$)}}" userInput="class" stepKey="grabCat12ClassOnProduct"/>
|
227 | 227 | <assertStringContainsString stepKey="assertCat12IsHighlightedOnProduct">
|
228 | 228 | <actualResult type="const">$grabCat12ClassOnProduct</actualResult>
|
229 |
| - <expectedResult type="string">active</expectedResult> |
| 229 | + <expectedResult type="string">{{CategoryClassStatus.scope}}</expectedResult> |
230 | 230 | </assertStringContainsString>
|
231 | 231 | <!-- Verify parent Cat 1 still has 'has-active' class on product page -->
|
232 | 232 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$createCat1.name$$)}}" userInput="class" stepKey="grabCat1ParentClassOnProductFromCat12"/>
|
233 | 233 | <assertStringContainsString stepKey="assertCat1HasActiveClassOnProductFromCat12">
|
234 | 234 | <actualResult type="const">$grabCat1ParentClassOnProductFromCat12</actualResult>
|
235 |
| - <expectedResult type="string">has-active</expectedResult> |
| 235 | + <expectedResult type="string">{{CategoryClassStatus.value}}</expectedResult> |
236 | 236 | </assertStringContainsString>
|
237 | 237 | <!-- Verify Cat 1.2 is still highlighted on product page -->
|
238 | 238 | <executeJS function="return document.querySelectorAll('{{AdminCategorySidebarTreeSection.categoryNotHighlighted}}').length" stepKey="highlightedCategoryAmount_Try7"/>
|
|
0 commit comments