Skip to content

Commit 7d1f631

Browse files
ACQE-7500 [MFTF TESTS] AdminUrlRewritesForProductInAnchorCategoriesTestAllStoreViewTest
modified copyright and moved config before creating category and product
1 parent 4de008a commit 7d1f631

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 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,13 @@
1717
<testCaseId value="MC-16568"/>
1818
<group value="urlRewrite"/>
1919
</annotations>
20-
21-
<!-- Preconditions-->
22-
<!-- Create 3 categories -->
2320
<before>
21+
<!-- Set the configuration for Generate "category/product" URL Rewrites-->
22+
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 1" stepKey="enableGenerateUrlRewrite"/>
23+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
24+
<argument name="tags" value=""/>
25+
</actionGroup>
26+
<!-- Create 3 categories -->
2427
<createData entity="SimpleSubCategory" stepKey="simpleSubCategory1"/>
2528
<createData entity="SubCategoryWithParent" stepKey="simpleSubCategory2">
2629
<requiredEntity createDataKey="simpleSubCategory1"/>
@@ -32,11 +35,12 @@
3235
<createData entity="ApiSimpleProduct" stepKey="createSimpleProduct">
3336
<requiredEntity createDataKey="simpleSubCategory3"/>
3437
</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"/>
3838
</before>
3939
<after>
40+
<magentoCLI command="config:set catalog/seo/generate_category_product_rewrites 0" stepKey="disableCategoryProductRewrites"/>
41+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
42+
<argument name="tags" value=""/>
43+
</actionGroup>
4044
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
4145
<deleteData createDataKey="simpleSubCategory1" stepKey="deletesimpleSubCategory1"/>
4246
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

0 commit comments

Comments
 (0)