Skip to content

Commit d585a8d

Browse files
committed
Merge branch 'ACQE-7500' into ACQE-functional-mainline-deployment
2 parents 552590a + b7d213f commit d585a8d

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -17,10 +17,14 @@
1717
<testCaseId value="MC-16568"/>
1818
<group value="urlRewrite"/>
1919
</annotations>
20-
21-
<!-- Preconditions-->
22-
<!-- Create 3 categories -->
2320
<before>
21+
<comment userInput="Enable config to generate category/product URL Rewrites " stepKey="commentEnableConfig"/>
22+
<!-- Set the configuration for Generate "category/product" URL Rewrites-->
23+
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
24+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
25+
<argument name="tags" value=""/>
26+
</actionGroup>
27+
<!-- Create 3 categories -->
2428
<createData entity="SimpleSubCategory" stepKey="simpleSubCategory1"/>
2529
<createData entity="SubCategoryWithParent" stepKey="simpleSubCategory2">
2630
<requiredEntity createDataKey="simpleSubCategory1"/>
@@ -32,11 +36,12 @@
3236
<createData entity="ApiSimpleProduct" stepKey="createSimpleProduct">
3337
<requiredEntity createDataKey="simpleSubCategory3"/>
3438
</createData>
35-
<!-- Set the configuration for Generate "category/product" URL Rewrites-->
36-
<comment userInput="Enable config to generate category/product URL Rewrites " stepKey="commentEnableConfig"/>
37-
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
3839
</before>
3940
<after>
41+
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableCategoryProductRewrites"/>
42+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
43+
<argument name="tags" value=""/>
44+
</actionGroup>
4045
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
4146
<deleteData createDataKey="simpleSubCategory1" stepKey="deletesimpleSubCategory1"/>
4247
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

0 commit comments

Comments
 (0)