Skip to content

Commit 020bc36

Browse files
committed
Removed CliCacheFlushActionGroup usage (or changed value) for Wishlist, Swatches, Translation, UrlRewrite, Vault and Weee modules
1 parent 5e57ddd commit 020bc36

17 files changed

+32
-105
lines changed

app/code/Magento/Swatches/Test/Mftf/Test/AdminDisablingSwatchTooltipsTest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343

4444
<!-- Enable swatch tooltips -->
4545
<magentoCLI command="config:set catalog/frontend/show_swatch_tooltip 1" stepKey="disableTooltips"/>
46-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterEnabling">
47-
<argument name="tags" value=""/>
48-
</actionGroup>
46+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnabling"/>
4947
</after>
5048

5149
<!-- Go to the edit page for the "color" attribute -->
@@ -149,9 +147,7 @@
149147

150148
<!-- Disable swatch tooltips -->
151149
<magentoCLI command="config:set catalog/frontend/show_swatch_tooltip 0" stepKey="disableTooltips"/>
152-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDisabling">
153-
<argument name="tags" value=""/>
154-
</actionGroup>
150+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterDisabling"/>
155151

156152
<!-- Verify swatch tooltips are not visible -->
157153
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontImageColorWhenFilterByColorFilterTest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@
7474
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
7575
<argument name="indices" value=""/>
7676
</actionGroup>
77-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
78-
<argument name="tags" value=""/>
79-
</actionGroup>
77+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
8078

8179
<!--Select any option in the Layered navigation and verify product image-->
8280
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="navigateToCategoryPage"/>

app/code/Magento/Translation/Test/Mftf/Test/StorefrontInlineTranslationOnCheckoutTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
<!-- 2. Refresh magento cache -->
118118
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterTranslateEnabled">
119-
<argument name="tags" value=""/>
119+
<argument name="tags" value="full_page"/>
120120
</actionGroup>
121121

122122
<!-- 3. Go to storefront and click on cart button on the top -->
@@ -478,9 +478,7 @@
478478
<!-- 7. Set *Enabled for Storefront* option to *No* and save configuration -->
479479
<magentoCLI command="config:set {{DisableTranslateInlineForStorefront.path}} {{DisableTranslateInlineForStorefront.value}}" stepKey="disableTranslateInlineForStorefront"/>
480480
<!-- 8. Clear magento cache -->
481-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterTranslateDisabled">
482-
<argument name="tags" value=""/>
483-
</actionGroup>
481+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterTranslateDisabled"/>
484482

485483
<magentoCLI command="setup:static-content:deploy -f" stepKey="deployStaticContent"/>
486484

app/code/Magento/UrlRewrite/Test/Mftf/Test/AdminCheckUrlRewritesCorrectlyGeneratedForMultipleStoreviewsDuringProductImportTest/AdminUrlRewriteMultipleStoreviewsProductImportWithConfigTurnedOffTest.xml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
<!-- Set the configuration for Generate "category/product" URL Rewrites to Yes (default)-->
2222
<comment userInput="Enable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentEnableUrlRewriteConfig"/>
2323
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
24-
<!--Flush cache-->
25-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterEnableConfig">
26-
<argument name="tags" value=""/>
27-
</actionGroup>
24+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableConfig"/>
2825
<createData entity="ApiCategory" stepKey="createCategory">
2926
<field key="name">category-admin</field>
3027
</createData>
@@ -40,10 +37,7 @@
4037
<!-- Set the configuration for Generate "category/product" URL Rewrites to No-->
4138
<comment userInput="Disable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentDisableUrlRewriteConfig"/>
4239
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableGenerateUrlRewrite"/>
43-
<!--Flush cache-->
44-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDisableConfig">
45-
<argument name="tags" value=""/>
46-
</actionGroup>
40+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterDisableConfig"/>
4741
</before>
4842
<after>
4943
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
@@ -61,10 +55,7 @@
6155
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFiltersIfSet"/>
6256
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
6357
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="resetConfigurationSetting"/>
64-
<!--Flush cache-->
65-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
66-
<argument name="tags" value=""/>
67-
</actionGroup>
58+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6859
</after>
6960
<actionGroup ref="SwitchCategoryStoreViewActionGroup" stepKey="switchToStoreViewEn">
7061
<argument name="Store" value="customStoreENNotUnique.name"/>

app/code/Magento/UrlRewrite/Test/Mftf/Test/AdminGenerateUrlRewritesForProductInCategoriesSwitchOffTest.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
<!-- Set the configuration for Generate "category/product" URL Rewrites-->
2222
<comment userInput="Enable config to generate category/product URL Rewrites" stepKey="commentEnableConfig" />
2323
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
24-
<!--Flush cache-->
25-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
26-
<argument name="tags" value=""/>
27-
</actionGroup>
24+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
2825

2926
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
3027
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
@@ -39,10 +36,7 @@
3936
<!-- Set the configuration for Generate "category/product" URL Rewrites-->
4037
<comment userInput="Enable config to generate category/product URL Rewrites" stepKey="commentEnableConfig" />
4138
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
42-
<!--Flush cache-->
43-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
44-
<argument name="tags" value=""/>
45-
</actionGroup>
39+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
4640

4741
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4842
</after>
@@ -62,9 +56,7 @@
6256
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableGenerateUrlRewrite"/>
6357

6458
<!-- 3. Flush cache-->
65-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
66-
<argument name="tags" value=""/>
67-
</actionGroup>
59+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6860

6961
<!-- 4. Open Marketing - SEO & Search - URL Rewrites -->
7062
<actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingUrlRewriteAfterDisablingTheConfig">

app/code/Magento/UrlRewrite/Test/Mftf/Test/AdminUrlRewritesForProductInAnchorCategoriesTest/AdminUrlRewritesForProductInAnchorCategoriesTestWithConfigurationTurnedOffTest.xml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
<!-- Set the configuration for Generate "category/product" URL Rewrites to Yes (default)-->
2525
<comment userInput="Enable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentEnableUrlRewriteConfig"/>
2626
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
27-
<!--Flush cache-->
28-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterEnableConfig">
29-
<argument name="tags" value=""/>
30-
</actionGroup>
27+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableConfig"/>
3128

3229
<createData entity="SimpleSubCategory" stepKey="simpleSubCategory1"/>
3330
<createData entity="SubCategoryWithParent" stepKey="simpleSubCategory2">
@@ -43,20 +40,14 @@
4340
<!-- Set the configuration for Generate "category/product" URL Rewrites to No-->
4441
<comment userInput="Disable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentDisableUrlRewriteConfig"/>
4542
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableGenerateUrlRewrite"/>
46-
<!--Flush cache-->
47-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
48-
<argument name="tags" value=""/>
49-
</actionGroup>
43+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
5044
</before>
5145
<after>
5246
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
5347
<deleteData createDataKey="simpleSubCategory1" stepKey="deletesimpleSubCategory1"/>
5448
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5549
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="resetConfigurationSetting"/>
56-
<!--Flush cache-->
57-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDisableConfig">
58-
<argument name="tags" value=""/>
59-
</actionGroup>
50+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterDisableConfig"/>
6051
</after>
6152
<!-- Steps -->
6253
<!-- 1. Log in to Admin -->

app/code/Magento/UrlRewrite/Test/Mftf/Test/AdminUrlRewritesForProductInAnchorCategoriesTest/AdminUrlRewritesForProductsWithConfigurationTurnedOffTest.xml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
<!-- Set the configuration for Generate "category/product" URL Rewrites to Yes (default)-->
2222
<comment userInput="Enable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentEnableUrlRewriteConfig"/>
2323
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
24-
<!--Flush cache-->
25-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterEnableConfig">
26-
<argument name="tags" value=""/>
27-
</actionGroup>
24+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableConfig"/>
2825
<createData entity="SimpleSubCategory" stepKey="simpleSubCategory1"/>
2926
<!-- Create Simple product 1 and assign it to Category 1 -->
3027
<createData entity="ApiSimpleProduct" stepKey="createSimpleProduct">
@@ -33,19 +30,13 @@
3330
<!-- Set the configuration for Generate "category/product" URL Rewrites to No-->
3431
<comment userInput="Disable SEO configuration setting to generate category/product URL Rewrites" stepKey="commentDisableUrlRewriteConfig"/>
3532
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableGenerateUrlRewrite"/>
36-
<!--Flush cache-->
37-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDisableConfig">
38-
<argument name="tags" value=""/>
39-
</actionGroup>
33+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterDisableConfig"/>
4034
</before>
4135
<after>
4236
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
4337
<deleteData createDataKey="simpleSubCategory1" stepKey="deletesimpleSubCategory1"/>
4438
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="resetConfigurationSetting"/>
45-
<!--Flush cache-->
46-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
47-
<argument name="tags" value=""/>
48-
</actionGroup>
39+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
4940
</after>
5041

5142
<!-- 1. Log in to Admin -->

app/code/Magento/Vault/Test/Mftf/Test/StorefrontVerifySecureURLRedirectVaultTest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@
2828
<executeJS function="return window.location.host" stepKey="hostname"/>
2929
<magentoCLI command="config:set web/secure/base_url https://{$hostname}/" stepKey="setSecureBaseURL"/>
3030
<magentoCLI command="config:set web/secure/use_in_frontend 1" stepKey="useSecureURLsOnStorefront"/>
31-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
32-
<argument name="tags" value=""/>
33-
</actionGroup>
31+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3432
</before>
3533
<after>
3634
<magentoCLI command="config:set web/secure/use_in_frontend 0" stepKey="dontUseSecureURLsOnStorefront"/>
37-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
38-
<argument name="tags" value=""/>
39-
</actionGroup>
35+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
4036
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
4137
</after>
4238
<executeJS function="return window.location.host" stepKey="hostname"/>

app/code/Magento/Weee/Test/Mftf/Test/AdminFixedTaxValSavedForSpecificWebsiteTest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@
5454
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
5555
<argument name="indices" value="catalog_product_price"/>
5656
</actionGroup>
57-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
58-
<argument name="tags" value=""/>
59-
</actionGroup>
57+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6058
</before>
6159
<after>
6260
<!--Set catalog price scope to Global-->
@@ -104,9 +102,7 @@
104102
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
105103
<argument name="indices" value="catalog_product_price"/>
106104
</actionGroup>
107-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
108-
<argument name="tags" value=""/>
109-
</actionGroup>
105+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
110106
<!--See available websites only 'All Websites'-->
111107
<comment userInput="See available websites 'All Websites', 'Main Website' and Second website" stepKey="commentCheckWebsitesInProductPage"/>
112108
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductPageSecondTime">

app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontAddProductsToCartFromWishlistUsingSidebarTest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
3030
<argument name="indices" value=""/>
3131
</actionGroup>
32-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
33-
<argument name="tags" value=""/>
34-
</actionGroup>
32+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3533
</before>
3634
<after>
3735
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
@@ -41,9 +39,7 @@
4139
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
4240
<argument name="indices" value=""/>
4341
</actionGroup>
44-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
45-
<argument name="tags" value=""/>
46-
</actionGroup>
42+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
4743
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
4844
</after>
4945
<!-- Sign in as customer -->

0 commit comments

Comments
 (0)