File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
app/code/Magento/CatalogUrlRewrite/Test/Mftf Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11
11
<description >Validates that the provided Product Title is present on the Rewrite URL with a subcategory page.</description >
12
12
</annotations >
13
13
<arguments >
14
- <argument name =" category" defaultValue =" _defaultCategory" />
15
- <argument name =" subCategory" defaultValue =" SimpleSubCategory" />
14
+ <argument name =" category" type =" string" defaultValue =" simplecategory" />
16
15
<argument name =" product" defaultValue =" SimpleProduct" />
17
16
</arguments >
18
17
19
- <amOnPage url =" {{category.url_key_default_store}}/{{subCategory.url_key_default_store }}/{{product.urlKey}}2.html" stepKey =" goToProductPage" />
18
+ <amOnPage url =" {{category}}/{{product.urlKey}}2.html" stepKey =" goToProductPage" />
20
19
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" {{product.name}}" stepKey =" seeProductNameInStoreFront" />
21
20
</actionGroup >
22
21
</actionGroups >
Original file line number Diff line number Diff line change 31
31
<after >
32
32
<actionGroup ref =" AdminDeleteStoreViewActionGroup" stepKey =" deleteStoreView" />
33
33
<actionGroup ref =" logout" stepKey =" logout" />
34
- <deleteData createDataKey =" subCategory " stepKey =" deleteSubCategory " />
34
+ <deleteData createDataKey =" simpleProduct " stepKey =" deleteSimpleProduct " />
35
35
<deleteData createDataKey =" defaultCategory" stepKey =" deleteNewRootCategory" />
36
-
37
36
<magentoCLI command =" config:set {{DisableCategoriesPathProductUrls.path}} {{DisableCategoriesPathProductUrls.value}}" stepKey =" disableUseCategoriesPath" />
38
37
<magentoCLI command =" cache:flush" stepKey =" flushCache" />
39
38
</after >
70
69
<argument name =" value" value =" {{SimpleSubCategoryDifferentUrlStore.url_key_custom_store}}" />
71
70
</actionGroup >
72
71
73
- <actionGroup ref =" StorefrontAssertProductRewriteUrlSubCategoryActionGroup" stepKey =" validatesRewriteUrl" >
74
- <argument name =" category" value =" _defaultCategoryDifferentUrlStore" />
75
- <argument name =" subCategory" value =" SimpleSubCategoryDifferentUrlStore" />
72
+ <actionGroup ref =" StorefrontAssertProductRewriteUrlSubCategoryActionGroup" stepKey =" validatesRewriteUrlDefaultStore" >
73
+ <argument name =" category" value =" {{_defaultCategoryDifferentUrlStore.url_key_default_store}}" />
74
+ <argument name =" product" value =" SimpleProduct" />
75
+ </actionGroup >
76
+
77
+ <actionGroup ref =" StorefrontSwitchStoreViewActionGroup" stepKey =" switchStore" >
78
+ <argument name =" storeView" value =" customStore" />
79
+ </actionGroup >
80
+
81
+ <actionGroup ref =" StorefrontAssertProductRewriteUrlSubCategoryActionGroup" stepKey =" validatesRewriteUrlCustomStore" >
82
+ <argument name =" category" value =" {{_defaultCategoryDifferentUrlStore.url_key_custom_store}}" />
76
83
<argument name =" product" value =" SimpleProduct" />
77
84
</actionGroup >
78
85
You can’t perform that action at this time.
0 commit comments