|
15 | 15 | <description value="Verify Product custom URL Key (for custom Store View) is preserved when assigned to a Category (with custom URL Key) alongside with another Product without custom URL Key"/>
|
16 | 16 | <testCaseId value="MC-6463"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 |
| - <group value="mtf_migrated"/> |
| 18 | + <group value="catalog"/> |
| 19 | + <group value="url_rewrite"/> |
19 | 20 | </annotations>
|
20 | 21 | <before>
|
21 | 22 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
|
25 | 26 | <createData entity="SimpleProduct" stepKey="createProductForUrlRewrite">
|
26 | 27 | <requiredEntity createDataKey="createCategory" />
|
27 | 28 | </createData>
|
28 |
| - <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
29 |
| - <!-- Create second store view--> |
| 29 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 30 | + <!-- Create second store view --> |
30 | 31 | <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView">
|
31 | 32 | <argument name="customStore" value="customStore"/>
|
32 | 33 | </actionGroup>
|
| 34 | + <magentoCLI command="indexer:reindex" stepKey="runReindex"/> |
33 | 35 | </before>
|
34 | 36 | <after>
|
35 | 37 | <deleteData createDataKey="createProduct" stepKey="deleteProduct" />
|
|
39 | 41 | <argument name="customStore" value="customStore"/>
|
40 | 42 | </actionGroup>
|
41 | 43 | <actionGroup ref="AdminGridFilterResetActionGroup" stepKey="clearFilterForStores"/>
|
42 |
| - <actionGroup ref="logout" stepKey="logout"/> |
| 44 | + <actionGroup ref="logout" stepKey="logoutFromAdmin"/> |
43 | 45 | </after>
|
44 | 46 | <!--Step 1. Navigate as Admin on Product Page for edit product`s Url Key-->
|
45 | 47 | <actionGroup ref="navigateToCreatedProductEditPage" stepKey="goToProductForUrlRewrite">
|
|
70 | 72 | <argument name="newRequestPath" value="u1.html"/>
|
71 | 73 | </actionGroup>
|
72 | 74 | <!--Step 6. On Storefront Assert what URL Key for product is correct(as initial URL) -->
|
73 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="amOnStorefrontProduct"> |
74 |
| - <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 75 | + <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="navigateToProductInDefaultStore"> |
| 76 | + <argument name="category" value="$$createCategory$$"/> |
| 77 | + <argument name="product" value="$$createProduct$$"/> |
75 | 78 | </actionGroup>
|
76 | 79 | <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductUrl">
|
77 | 80 | <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/>
|
78 | 81 | </actionGroup>
|
79 | 82 | <!--Step 7. On Storefront Assert what URL Key for product is correct for Default Store View (as initial URL) -->
|
80 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="amOnStorefrontProductWithChangedUrl"> |
81 |
| - <argument name="productUrl" value="$$createProductForUrlRewrite.custom_attributes[url_key]$$"/> |
| 83 | + <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="navigateToProductForUrlRewriteInDefaultStore"> |
| 84 | + <argument name="category" value="$$createCategory$$"/> |
| 85 | + <argument name="product" value="$$createProductForUrlRewrite$$"/> |
82 | 86 | </actionGroup>
|
83 |
| - <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductWithChangedUrl"> |
| 87 | + <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductWithChangedUrl"> |
84 | 88 | <argument name="productUrl" value="$$createProductForUrlRewrite.custom_attributes[url_key]$$"/>
|
85 | 89 | </actionGroup>
|
86 | 90 | <!--Step 8. On Storefront switch on created Custom Store View -->
|
|
93 | 97 | <argument name="newRequestPath" value="u1.html"/>
|
94 | 98 | </actionGroup>
|
95 | 99 | <!--Step 10. On Storefront Assert what URL Key for product is correct for Custom Store View (as initial URL) -->
|
96 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="amOnCustomStoreProduct"> |
97 |
| - <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 100 | + <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="navigateToProductInCustomStore"> |
| 101 | + <argument name="category" value="$$createCategory$$"/> |
| 102 | + <argument name="product" value="$$createProduct$$"/> |
98 | 103 | </actionGroup>
|
99 |
| - <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductP1UrlonCustomStore"> |
| 104 | + <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductUrlOnCustomStore"> |
100 | 105 | <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/>
|
101 | 106 | </actionGroup>
|
102 | 107 | <!--Step 11. On Storefront Assert what URL Key for product is changed and is correct for Custom Store View -->
|
|
0 commit comments