|
11 | 11 | <test name="AdminProductCustomURLKeyPreservedWhenAssignedToCategoryWithoutCustomURLKey">
|
12 | 12 | <annotations>
|
13 | 13 | <stories value="Product"/>
|
| 14 | + <features value="Catalog"/> |
14 | 15 | <title value="Product custom URL Key is preserved when assigned to a Category (without custom URL Key) alongside with another Product without custom URL Key"/>
|
15 | 16 | <description value="The test verifies that product custom URL Key is preserved when assigned to a Category (without custom URL Key) alongside with another Product without custom URL Key."/>
|
16 | 17 | <severity value="MAJOR"/>
|
17 | 18 | <testCaseId value="MC-6443"/>
|
| 19 | + <useCaseId value="MAGETWO-90331"/> |
18 | 20 | <group value="catalog"/>
|
19 | 21 | </annotations>
|
20 | 22 | <before>
|
|
74 | 76 |
|
75 | 77 | <actionGroup ref="saveCategoryForm" stepKey="saveCategory"/>
|
76 | 78 |
|
77 |
| - <executeJS function="var s = '$createCategory.name$'; var res=s.toLowerCase(); return res;" stepKey="categoryNameLower" /> |
78 |
| - <executeJS function="var s = '$createSimpleProductFirst.name$'; var res=s.toLowerCase(); return res;" stepKey="simpleProductFirstNameLower" /> |
79 |
| - <executeJS function="var s = '$createSimpleProductSecond.name$';var res=s.toLowerCase(); return res;" stepKey="simpleProductSecondNameLower" /> |
| 79 | + <executeJS function="return '$createCategory.name$'.toLowerCase();" stepKey="categoryNameLower" /> |
| 80 | + <executeJS function="return '$createSimpleProductFirst.name$'.toLowerCase();" stepKey="simpleProductFirstNameLower" /> |
| 81 | + <executeJS function="return '$createSimpleProductSecond.name$'.toLowerCase();" stepKey="simpleProductSecondNameLower" /> |
80 | 82 |
|
81 | 83 | <!-- Make assertions on frontend -->
|
82 | 84 | <amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToStorefrontPage"/>
|
|
85 | 87 |
|
86 | 88 | <!-- Open first product -->
|
87 | 89 | <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($createSimpleProductFirst.name$)}}" stepKey="openFirstProduct"/>
|
| 90 | + <waitForPageLoad time="30" stepKey="waitForFirstProduct"/> |
88 | 91 | <seeInCurrentUrl url="{$simpleProductFirstNameLower}.html" stepKey="checkFirstSimpleProductUrlKey"/>
|
89 | 92 |
|
90 |
| - <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="onCategoryView"/> |
| 93 | + <amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="onCategoryView"/> |
91 | 94 | <!-- Open second product -->
|
92 | 95 | <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($createSimpleProductSecond.name$)}}" stepKey="openSecondProduct"/>
|
| 96 | + <waitForPageLoad time="30" stepKey="waitForSecondProduct"/> |
93 | 97 | <seeInCurrentUrl url="{$simpleProductSecondNameLower}.html" stepKey="checkSecondSimpleProductUrlKey"/>
|
94 | 98 |
|
95 | 99 | <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="switchToCustomStoreView">
|
|
101 | 105 |
|
102 | 106 | <!-- Open product first -->
|
103 | 107 | <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSimpleProductFirst.name$$)}}" stepKey="openFirstSimpleProduct"/>
|
| 108 | + <waitForPageLoad time="30" stepKey="waitForFirstSimpleProduct"/> |
104 | 109 | <seeInCurrentUrl url="{$simpleProductFirstNameLower}.html" stepKey="assertFirstSimpleProductUrlKey"/>
|
105 | 110 |
|
106 | 111 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($createCategory.name$)}}" stepKey="openCategoryView"/>
|
107 | 112 | <!-- Open product2 -->
|
108 | 113 | <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($createSimpleProductSecond.name$)}}" stepKey="openSecondSimpleProduct"/>
|
| 114 | + <waitForPageLoad time="30" stepKey="waitForSecondSimpleProduct"/> |
109 | 115 | <seeInCurrentUrl url="u2.html" stepKey="assertSecondSimpleProductUrlKey"/>
|
110 | 116 | </test>
|
111 | 117 | </tests>
|
0 commit comments