|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 | 3 | /**
|
4 |
| - * Copyright © Magento, Inc. All rights reserved. |
5 |
| - * See COPYING.txt for license details. |
| 4 | + * Copyright 2025 Adobe |
| 5 | + * All Rights Reserved. |
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
17 | 17 | <testCaseId value="MC-16568"/>
|
18 | 18 | <group value="urlRewrite"/>
|
19 | 19 | </annotations>
|
20 |
| - |
21 |
| - <!-- Preconditions--> |
22 |
| - <!-- Create 3 categories --> |
23 | 20 | <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 --> |
24 | 28 | <createData entity="SimpleSubCategory" stepKey="simpleSubCategory1"/>
|
25 | 29 | <createData entity="SubCategoryWithParent" stepKey="simpleSubCategory2">
|
26 | 30 | <requiredEntity createDataKey="simpleSubCategory1"/>
|
|
32 | 36 | <createData entity="ApiSimpleProduct" stepKey="createSimpleProduct">
|
33 | 37 | <requiredEntity createDataKey="simpleSubCategory3"/>
|
34 | 38 | </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"/> |
38 | 39 | </before>
|
39 | 40 | <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> |
40 | 45 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
|
41 | 46 | <deleteData createDataKey="simpleSubCategory1" stepKey="deletesimpleSubCategory1"/>
|
42 | 47 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
|
0 commit comments