Skip to content

Commit ab1f7b9

Browse files
committed
Remove active category in the cache key
- Stabilize functional tests;
1 parent eeeb5bd commit ab1f7b9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontNoStoreCodeNoCategoryPathHtmlSuffixNavigationTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
<actionGroup ref="StorefrontOpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategoryPage">
119119
<argument name="productName" value="$product_1_1_1_2.name$"/>
120120
</actionGroup>
121+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductDisplayPageLoad"/>
121122
<actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeCorrectName">
122123
<argument name="productName" value="$product_1_1_1_2.name$"/>
123124
</actionGroup>
@@ -219,6 +220,7 @@
219220
<actionGroup ref="StorefrontOpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategoryPage_Try2">
220221
<argument name="productName" value="$product_1_1_1_2.name$"/>
221222
</actionGroup>
223+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductDisplayPageLoad_Try2"/>
222224
<actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeCorrectName_Try2">
223225
<argument name="productName" value="$product_1_1_1_2.name$"/>
224226
</actionGroup>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontNoStoreCodeYesCategoryPathCustomSuffixNavigationTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<test name="StorefrontNoStoreCodeYesCategoryPathCustomSuffixNavigationTest">
1111
<annotations>
1212
<features value="Catalog"/>
13-
<stories value="Navigation Menu Highlighting with custom Suffix, No Store Code, Yes Category Path"/>
13+
<stories value="Navigation Menu Highlighting with Custom Suffix, No Store Code, Yes Category Path"/>
1414
<title value="Validation of Navigation Menu Highlighting with custom Suffix, No Store Code and Yes Category Path in URLs"/>
1515
<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."/>
1616
<testCaseId value="AC-10851"/>
@@ -127,6 +127,7 @@
127127
<actionGroup ref="StorefrontOpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategoryPage">
128128
<argument name="productName" value="$product_1_1_1_2.name$"/>
129129
</actionGroup>
130+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductDisplayPageLoad"/>
130131
<actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeCorrectName">
131132
<argument name="productName" value="$product_1_1_1_2.name$"/>
132133
</actionGroup>
@@ -228,6 +229,7 @@
228229
<actionGroup ref="StorefrontOpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategoryPage_Try2">
229230
<argument name="productName" value="$product_1_1_1_2.name$"/>
230231
</actionGroup>
232+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductDisplayPageLoad_Try2"/>
231233
<actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeCorrectName_Try2">
232234
<argument name="productName" value="$product_1_1_1_2.name$"/>
233235
</actionGroup>

0 commit comments

Comments
 (0)