Skip to content

Commit 68dcde7

Browse files
ENGCOM-8715: Removed CliCacheFlushActionGroup usage for Catalog module #31864
- Merge Pull Request #31864 from sergiy-v/magento2:mftf-CliCacheFlushActionGroup-usage-catalog - Merged commits: 1. 922033c
2 parents f6e06ec + 922033c commit 68dcde7

17 files changed

+23
-72
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<before>
2323
<comment userInput="Adding the comment for preserving Backward Compatibility" stepKey="loginAsAdmin"/>
2424
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockDisable.path}} {{CatalogInventoryOptionsShowOutOfStockDisable.value}}" stepKey="setConfigShowOutOfStockFalse"/>
25-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
26-
<argument name="tags" value=""/>
27-
</actionGroup>
25+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
2826
<createData entity="SimpleSubCategory" stepKey="category"/>
2927
<createData entity="SimpleProduct4" stepKey="product">
3028
<requiredEntity createDataKey="category"/>
@@ -33,9 +31,7 @@
3331

3432
<after>
3533
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockDisable.path}} {{CatalogInventoryOptionsShowOutOfStockDisable.value}}" stepKey="setConfigShowOutOfStockFalse"/>
36-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
37-
<argument name="tags" value=""/>
38-
</actionGroup>
34+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3935
<deleteData createDataKey="product" stepKey="deleteProduct"/>
4036
<deleteData createDataKey="category" stepKey="deleteCategory"/>
4137
<comment userInput="Adding the comment for preserving Backward Compatibility" stepKey="logout"/>
@@ -58,9 +54,7 @@
5854
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
5955
<argument name="indices" value="catalog_product_price"/>
6056
</actionGroup>
61-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
62-
<argument name="tags" value=""/>
63-
</actionGroup>
57+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6458

6559
<comment userInput="Open product page | Comment is kept to preserve the step key for backward compatibility" stepKey="openProductPage"/>
6660
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToSimpleProductPage2"/>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@
5959
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickOnSaveButton"/>
6060
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/>
6161
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
62-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
63-
<argument name="tags" value=""/>
64-
</actionGroup>
62+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6563
<!--Verify product is visible in category front page -->
6664
<amOnPage url="$$createCategory.name$$.html" stepKey="openCategoryStoreFrontPage"/>
6765
<waitForPageLoad stepKey="waitForCategoryPageToLoad"/>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@
7171
</actionGroup>
7272

7373
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
74-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
75-
<argument name="tags" value=""/>
76-
</actionGroup>
74+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7775
<!--Verify Product in store front page-->
7876
<amOnPage url="{{StorefrontCategoryPage.url(_defaultCategory.name_lwr)}}" stepKey="amOnCategoryPage"/>
7977
<waitForPageLoad stepKey="waitForPageToBeLoaded"/>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@
8282
<click selector="{{AttributePropertiesSection.Save}}" stepKey="clickSave"/>
8383
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSuccessMessage"/>
8484

85-
<!-- Flash cache -->
86-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
87-
<argument name="tags" value=""/>
88-
</actionGroup>
85+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
8986

9087
<!-- Go to store's advanced catalog search page -->
9188
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
<argument name="storeView" value="customStoreFR"/>
3232
</actionGroup>
3333
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
34-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
35-
<argument name="tags" value=""/>
36-
</actionGroup>
34+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3735
<!--Enable Flat Catalog Category -->
3836
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3937
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
@@ -64,9 +62,7 @@
6462
<see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{CatNotActive.name}}" stepKey="seeUpdatedCategoryTitle"/>
6563
<dontSeeCheckboxIsChecked selector="{{AdminCategoryBasicFieldSection.enableCategoryLabel}}" stepKey="verifyInactiveCategory"/>
6664
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
67-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
68-
<argument name="tags" value=""/>
69-
</actionGroup>
65+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7066
<!--Open Index Management Page -->
7167
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
7268
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
<argument name="storeView" value="customStoreFR"/>
3232
</actionGroup>
3333
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
34-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
35-
<argument name="tags" value=""/>
36-
</actionGroup>
34+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3735
<!--Enable Flat Catalog Category -->
3836
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3937
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
@@ -67,9 +65,7 @@
6765
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
6866
<argument name="indices" value="catalog_category_flat"/>
6967
</actionGroup>
70-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
71-
<argument name="tags" value=""/>
72-
</actionGroup>
68+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7369
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
7470
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
7571
<!--Verify Category In Store Front-->

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
<argument name="storeView" value="customStoreFR"/>
3232
</actionGroup>
3333
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
34-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
35-
<argument name="tags" value=""/>
36-
</actionGroup>
34+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3735
<!--Enable Flat Catalog Category -->
3836
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3937
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
@@ -68,9 +66,7 @@
6866
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
6967
<argument name="indices" value="catalog_category_flat"/>
7068
</actionGroup>
71-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
72-
<argument name="tags" value=""/>
73-
</actionGroup>
69+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7470
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
7571
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
7672
<!--Verify Category In Store Front-->

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@
8686
<click selector="{{AttributePropertiesSection.Save}}" stepKey="clickSave"/>
8787
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSuccessMessage"/>
8888

89-
<!-- Flash cache -->
90-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
91-
<argument name="tags" value=""/>
92-
</actionGroup>
89+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
9390

9491
<!-- Go to store's advanced catalog search page -->
9592
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@
4848
</actionGroup>
4949
<!-- Save the product -->
5050
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
51-
<!-- Flush config cache to reset product attributes in attribute set -->
52-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushConfigCache">
53-
<argument name="tags" value="config"/>
54-
</actionGroup>
51+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushConfigCache"/>
5552
<reloadPage stepKey="reloadProductEditPage"/>
5653
<!-- Check default value -->
5754
<waitForElementVisible selector="{{AdminProductAttributesSection.sectionHeader}}" stepKey="waitAttributesSectionAppears"/>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
<argument name="simpleProduct" value="ProductWithUnicode"/>
3333
</actionGroup>
3434
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
35-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
36-
<argument name="tags" value=""/>
37-
</actionGroup>
35+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3836
<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
3937
<argument name="category" value="$$createPreReqCategory$$"/>
4038
<argument name="product" value="ProductWithUnicode"/>

0 commit comments

Comments
 (0)