|
7 | 7 | -->
|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="StorefrontNoStoreCodeYesCategoryPathCustomSuffixNavigationTest"> |
| 10 | + <test name="StorefrontNoStoreCodeYesCategoryPathHtmlSuffixNavigationTest"> |
11 | 11 | <annotations>
|
12 | 12 | <features value="Catalog"/>
|
13 |
| - <stories value="Navigation Menu Highlighting with Custom Suffix, No Store Code, Yes Category Path"/> |
14 |
| - <title value="Validation of Navigation Menu Highlighting with custom Suffix, No Store Code and Yes Category Path in URLs"/> |
15 |
| - <description value="This test verifies that the correct category is highlighted in the navigation menu when navigating through categories and products on the storefront, specifically with custom URL suffixes and the settings 'Add Store Code to Urls: No' and 'Use Categories Path for Product URLs: Yes'. The test focuses on the impact of these configurations on category highlighting."/> |
| 13 | + <stories value="Navigation Menu Highlighting with .html Suffix, No Store Code, Yes Category Path"/> |
| 14 | + <title value="Validation of Navigation Menu Highlighting with .html Suffix, No Store Code and Yes Category Path in URLs"/> |
| 15 | + <description value="This test verifies that the correct category is highlighted in the navigation menu when navigating through categories and products on the storefront, specifically with .html URL suffixes and the settings 'Add Store Code to Urls: No' and 'Use Categories Path for Product URLs: Yes'. The test focuses on the impact of these configurations on category highlighting."/> |
16 | 16 | <testCaseId value="AC-10851"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <group value="catalog"/>
|
|
44 | 44 | <argument name="indices" value=""/>
|
45 | 45 | </actionGroup>
|
46 | 46 | <!-- Set custom url suffixes -->
|
47 |
| - <magentoCLI command="config:set catalog/seo/category_url_suffix .htm" stepKey="setCategoryUrlSuffix"/> |
48 |
| - <magentoCLI command="config:set catalog/seo/product_url_suffix .phtml" stepKey="setProductUrlSuffix"/> |
| 47 | + <magentoCLI command="config:set catalog/seo/category_url_suffix .html" stepKey="setCategoryUrlSuffix"/> |
| 48 | + <magentoCLI command="config:set catalog/seo/product_url_suffix .html" stepKey="setProductUrlSuffix"/> |
49 | 49 | <!-- Set "Add Store Code to Urls": No -->
|
50 | 50 | <magentoCLI command="config:set {{StorefrontDisableAddStoreCodeToUrls.path}} {{StorefrontDisableAddStoreCodeToUrls.value}}" stepKey="disableStoreCodeToUrls"/>
|
51 | 51 | <!-- Set "Use Categories Path for Product URLs": Yes -->
|
|
62 | 62 | <deleteData createDataKey="product_1_1" stepKey="deleteProduct_1_1" />
|
63 | 63 | <deleteData createDataKey="product_1_2" stepKey="deleteProduct_1_2" />
|
64 | 64 | <deleteData createDataKey="product_1_1_1_2" stepKey="deleteProduct_1_1_1_2" />
|
65 |
| - <!-- Set url suffixes to its default values --> |
66 |
| - <magentoCLI command="config:set catalog/seo/category_url_suffix .html" stepKey="setCategoryUrlSuffix"/> |
67 |
| - <magentoCLI command="config:set catalog/seo/product_url_suffix .html" stepKey="setProductUrlSuffix"/> |
68 | 65 | <!-- Set "Use Categories Path for Product URLs": No -->
|
69 | 66 | <magentoCLI command="config:set {{DisableCategoriesPathForProductUrls.path}} {{DisableCategoriesPathForProductUrls.value}}" stepKey="disableCategoriesPathForProductUrls"/>
|
70 | 67 | <!-- Flush needed cache -->
|
71 | 68 | <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterChangingConfig">
|
72 |
| - <argument name="tags" value=""/> |
| 69 | + <argument name="tags" value="config full_page"/> |
73 | 70 | </actionGroup>
|
74 | 71 | </after>
|
75 | 72 | <!-- Open storefront homepage -->
|
|
200 | 197 | </assertEquals>
|
201 | 198 |
|
202 | 199 | <!-- Open direct Category 1.2 url -->
|
203 |
| - <amOnPage url="/$$category_1.custom_attributes[url_key]$$/$$category_1_2.custom_attributes[url_key]$$.htm" stepKey="openCategoryPageDirectly"/> |
| 200 | + <amOnPage url="/$$category_1.custom_attributes[url_key]$$/$$category_1_2.custom_attributes[url_key]$$.html" stepKey="openCategoryPageDirectly"/> |
204 | 201 | <waitForPageLoad stepKey="waitForCategoryStoreFrontPageToLoad"/>
|
205 | 202 | <!-- Check if parent Category 1 has 'has-active' class and Category 1.2 child category has 'active' class -->
|
206 | 203 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$category_1.name$$)}}" userInput="class" stepKey="grabCategory_1_Class_Try4"/>
|
|
260 | 257 | </assertEquals>
|
261 | 258 |
|
262 | 259 | <!-- Open product assigned to both Category 1_1 & Category 1_2 by its direct page url with category in it -->
|
263 |
| - <amOnPage url="/$$category_1.custom_attributes[url_key]$$/$$category_1_2.custom_attributes[url_key]$$/$$product_1_1_1_2.custom_attributes[url_key]$$.phtml" stepKey="openProductPageDirectly" /> |
| 260 | + <amOnPage url="/$$category_1.custom_attributes[url_key]$$/$$category_1_2.custom_attributes[url_key]$$/$$product_1_1_1_2.custom_attributes[url_key]$$.html" stepKey="openProductPageDirectly" /> |
264 | 261 | <waitForPageLoad stepKey="waitForProductPageLoad"/>
|
265 | 262 | <!-- Check if parent Category 1 has 'has-active' class and Category 1.2 child category has 'active' class -->
|
266 | 263 | <grabAttributeFrom selector="{{AdminCategorySidebarTreeSection.categoryHighlighted($$category_1.name$$)}}" userInput="class" stepKey="grabCategory_1_Class_Try6"/>
|
|
0 commit comments