|
21 | 21 | <!-- Login as Admin -->
|
22 | 22 | <comment userInput="Login as Admin" stepKey="commentLoginAsAdmin"/>
|
23 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="login"/>
|
24 |
| - <!-- Set default configurations --> |
25 |
| - <comment userInput="Set default configurations" stepKey="commentSetDefaultCategory"/> |
26 |
| - <magentoCLI command="config:set catalog/frontend/grid_per_page_values 12,24,36" stepKey="setAllowedProductsPerPageValue"/> |
27 |
| - <magentoCLI command="config:set catalog/frontend/grid_per_page 12" stepKey="setDefaultProductsPerPageValue"/> |
28 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
29 |
| - <magentoCLI command="cache:flush" stepKey="flushCache"/> |
30 | 24 | <!--Create 37 Products and Subcategory -->
|
31 | 25 | <comment userInput="Create 37 Products and Subcategory" stepKey="commentCreateData"/>
|
32 | 26 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
|
183 | 177 | <deleteData createDataKey="createSimpleProductThirtySeven" stepKey="deleteProductThirtySeven"/>
|
184 | 178 | <actionGroup ref="logout" stepKey="logout"/>
|
185 | 179 | </after>
|
| 180 | + <!--Verify configuration for default number of products displayed in the grid view--> |
| 181 | + <comment userInput="Verify configuration for default number of products displayed in the grid view" stepKey="commentVerifyDefaultValues"/> |
| 182 | + <amOnPage url="{{CatalogConfigPage.url}}" stepKey="goToCatalogConfigPagePage"/> |
| 183 | + <waitForPageLoad stepKey="waitForConfigPageLoad" /> |
| 184 | + <conditionalClick selector="{{AdminCatalogStorefrontConfigSection.sectionHeader}}" dependentSelector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" visible="false" stepKey="openCatalogConfigStorefrontSection"/> |
| 185 | + <waitForElementVisible selector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" stepKey="waitForSectionOpen"/> |
| 186 | + <seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" userInput="12,24,36" stepKey="seeDefaultValueAllowedNumberProductsPerPage"/> |
| 187 | + <seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageDefaultValue}}" userInput="12" stepKey="seeDefaultValueProductPerPage"/> |
186 | 188 | <!-- Open storefront on the category page -->
|
187 | 189 | <comment userInput="Open storefront on the category page" stepKey="commentOpenStorefront"/>
|
188 | 190 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="goToStorefrontCreatedCategoryPage"/>
|
|
0 commit comments