|
15 | 15 | <severity value="MAJOR"/>
|
16 | 16 | <testCaseId value="AC-4613"/>
|
17 | 17 | <group value="catalog"/>
|
| 18 | + <group value="WYSIWYGDisabled"/> |
18 | 19 | </annotations>
|
19 | 20 | <before>
|
20 |
| - <!-- Set indexer on save--> |
21 |
| - <magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="realtime" /> |
22 | 21 | <!--set catalog flat category to yes-->
|
23 | 22 | <magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
|
24 | 23 | <createData entity="ApiCategory" stepKey="categoryA"/>
|
|
36 | 35 | <requiredEntity createDataKey="categoryC"/>
|
37 | 36 | </createData>
|
38 | 37 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
|
39 |
| - <!--disable wysiwyg--> |
40 |
| - <actionGroup ref="AdminDisableWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
41 | 38 | <!--open category in BE-->
|
42 | 39 | <!-- update category A details-->
|
43 | 40 | <actionGroup ref="GoToAdminCategoryPageByIdActionGroup" stepKey="goToAdminCategoryPageA">
|
|
50 | 47 | </actionGroup>
|
51 | 48 | <!--Select Display Setting and fill the options-->
|
52 | 49 | <actionGroup ref="AdminUpdateCategoryDisplaySettingsActionGroup" stepKey="addCategoryDisplaySettingA">
|
53 |
| - <argument name="availableSortOptions" value="Position"/> |
54 |
| - <argument name="defaultSortingOption" value="position"/> |
| 50 | + <argument name="availableSortOptions" value="Product Name"/> |
| 51 | + <argument name="defaultSortingOption" value="name"/> |
55 | 52 | <argument name="priceRange" value="5.5"/>
|
56 | 53 | </actionGroup>
|
57 | 54 | <!--Update meta title-->
|
|
62 | 59 | <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessageA">
|
63 | 60 | <argument name="message" value="You saved the category."/>
|
64 | 61 | </actionGroup>
|
65 |
| - <!-- update category C details--> |
| 62 | + <!--update category C details--> |
66 | 63 | <actionGroup ref="GoToAdminCategoryPageByIdActionGroup" stepKey="goToAdminCategoryPageC">
|
67 | 64 | <argument name="id" value="$categoryC.id$"/>
|
68 | 65 | </actionGroup>
|
|
73 | 70 | </actionGroup>
|
74 | 71 | <!--Select Display Setting and fill the options-->
|
75 | 72 | <actionGroup ref="AdminUpdateCategoryDisplaySettingsActionGroup" stepKey="addCategoryDisplaySettingC">
|
76 |
| - <argument name="availableSortOptions" value="Position"/> |
77 |
| - <argument name="defaultSortingOption" value="position"/> |
| 73 | + <argument name="availableSortOptions" value="Product Name"/> |
| 74 | + <argument name="defaultSortingOption" value="name"/> |
78 | 75 | <argument name="priceRange" value="5.5"/>
|
79 | 76 | </actionGroup>
|
80 | 77 | <!--Update meta title-->
|
|
87 | 84 | </actionGroup>
|
88 | 85 | </before>
|
89 | 86 | <after>
|
| 87 | + <magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/> |
90 | 88 | <deleteData createDataKey="categoryB" stepKey="deleteSimpleCategoryB"/>
|
91 | 89 | <deleteData createDataKey="categoryA" stepKey="deleteSimpleCategoryA"/>
|
92 | 90 | <deleteData createDataKey="categoryC" stepKey="deleteSimpleCategoryC"/>
|
|
106 | 104 | <waitForText userInput="Updated CategoryA Description" selector="{{StorefrontCategoryMainSection.CatalogDescriptionWithoutPTag}}" stepKey="assertCatalogDescriptionA"/>
|
107 | 105 | <!-- assert title-->
|
108 | 106 | <waitForElement selector="{{StorefrontCategoryHeadSection.pageTitle('MetaAtitle')}}" stepKey="assertCatalogMetaTitleA"/>
|
109 |
| - <waitForText userInput="2" selector="{{StorefrontCategoryMainSection.productCount}} span" stepKey="assertProductCount1stTimeA"/> |
| 107 | + <waitForText userInput="2" selector="{{StorefrontCategoryMainSection.productCount}}" stepKey="assertProductCount1stTimeA"/> |
110 | 108 | <!-- Move CategoryA under CategoryC and click ok button-->
|
111 | 109 | <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToAdminCategoryPage1"/>
|
112 | 110 | <actionGroup ref="MoveCategoryActionGroup" stepKey="moveCategoryAUnderCategoryC">
|
|
128 | 126 | <waitForElementVisible selector="{{StorefrontCategoryMainSection.imageSource(ProductImage.filename)}}" stepKey="seeImageA1"/>
|
129 | 127 | <waitForText userInput="Updated CategoryA Description" selector="{{StorefrontCategoryMainSection.CatalogDescriptionWithoutPTag}}" stepKey="assertCatalogDescriptionA1"/>
|
130 | 128 | <waitForElement selector="{{StorefrontCategoryHeadSection.pageTitle('MetaAtitle')}}" stepKey="assertCatalogMetaTitleA1"/>
|
131 |
| - <waitForText userInput="2" selector="{{StorefrontCategoryMainSection.productCount}} span" stepKey="assertProductCount2ndTimeA1"/> |
| 129 | + <waitForText userInput="2" selector="{{StorefrontCategoryMainSection.productCount}}" stepKey="assertProductCount2ndTimeA1"/> |
132 | 130 | <!-- Move CategoryB under CategoryC and click ok button-->
|
133 | 131 | <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToAdminCategoryPage2"/>
|
134 | 132 | <actionGroup ref="MoveCategoryActionGroup" stepKey="moveCategoryBUnderCategoryC">
|
|
150 | 148 | <waitForElementVisible selector="{{StorefrontCategoryMainSection.imageSource(ProductImage.filename)}}" stepKey="seeImageC"/>
|
151 | 149 | <waitForText userInput="Updated CategoryC Description" selector="{{StorefrontCategoryMainSection.CatalogDescriptionWithoutPTag}}" stepKey="assertCatalogDescriptionC"/>
|
152 | 150 | <waitForElement selector="{{StorefrontCategoryHeadSection.pageTitle('MetaCtitle')}}" stepKey="assertCatalogMetaTitleC"/>
|
153 |
| - <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}} span" stepKey="assertProductCount3rdTimeC"/> |
| 151 | + <waitForText userInput="1" selector="{{StorefrontCategoryMainSection.productCount}}" stepKey="assertProductCount3rdTimeC"/> |
154 | 152 | <!--Create a Store-->
|
155 | 153 | <actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore">
|
156 | 154 | <argument name="website" value="{{_defaultWebsite.name}}"/>
|
|
176 | 174 | <argument name="categoryName" value="Категория А"/>
|
177 | 175 | </actionGroup>
|
178 | 176 | <!--Update category A description-->
|
179 |
| - <actionGroup ref="AdminUpdateCategoryDescriptionAtStoreViewLevelActionGroup" stepKey="addCategoryDescriptionC1"> |
| 177 | + <actionGroup ref="AdminUpdateCategoryDescriptionActionGroup" stepKey="addCategoryDescriptionC1"> |
180 | 178 | <argument name="description" value="Другое описание категории А"/>
|
181 | 179 | </actionGroup>
|
182 | 180 | <!--Update category A image -->
|
|
188 | 186 | <argument name="value" value="kategoriya-A"/>
|
189 | 187 | </actionGroup>
|
190 | 188 | <!--Update category A meta title-->
|
191 |
| - <actionGroup ref="AdminUpdateCategoryMetaInformationAtStoreViewLevelActionGroup" stepKey="addCategoryMetaTitleC"> |
| 189 | + <actionGroup ref="AdminUpdateCategoryMetaInformationActionGroup" stepKey="addCategoryMetaTitleC"> |
192 | 190 | <argument name="metaTitle" value="Категория А"/>
|
193 | 191 | </actionGroup>
|
194 | 192 | <actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveCategoryA"/>
|
|
0 commit comments