Skip to content

Commit ed7ce47

Browse files
committed
MC-15341: Default product numbers to display results in poor display on Desktop
- Updated automated test script
1 parent 7a21c88 commit ed7ce47

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/CheckDefaultNumberProductsToDisplayTest.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
<!-- Login as Admin -->
2222
<comment userInput="Login as Admin" stepKey="commentLoginAsAdmin"/>
2323
<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"/>
3024
<!--Create 37 Products and Subcategory -->
3125
<comment userInput="Create 37 Products and Subcategory" stepKey="commentCreateData"/>
3226
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
@@ -183,6 +177,14 @@
183177
<deleteData createDataKey="createSimpleProductThirtySeven" stepKey="deleteProductThirtySeven"/>
184178
<actionGroup ref="logout" stepKey="logout"/>
185179
</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"/>
186188
<!-- Open storefront on the category page -->
187189
<comment userInput="Open storefront on the category page" stepKey="commentOpenStorefront"/>
188190
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="goToStorefrontCreatedCategoryPage"/>

0 commit comments

Comments
 (0)