Skip to content

Commit 147061f

Browse files
committed
ACQE-8176: [Sorting] Check whether customer/guest is able to sort the product in the frontend when Remember Category Pagination is enabled
-Assertions are added in Step 2 as suggested
1 parent ea4a895 commit 147061f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
6161
<argument name="Customer" value="$$customer$$"/>
6262
</actionGroup>
63-
<actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="NavigateToCategoryPageOnStoreFront">
64-
<argument name="categoryUrl" value="$$category.custom_attributes[url_key]$$"/>
65-
</actionGroup>
66-
<!-- Step 2: Search for the product example - Bag -->
63+
<!-- Step 2: Search for the product Bag -->
6764
<actionGroup ref="StoreFrontQuickSearchActionGroup" stepKey="searchByCreatedTerm">
6865
<argument name="query" value="Bag"/>
6966
</actionGroup>
67+
<waitForElementVisible userInput="$product1.name$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="seeProduct1"/>
68+
<waitForElementVisible userInput="$product2.name$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="seeProduct2"/>
69+
<waitForElementVisible userInput="$product3.name$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="seeProduct3"/>
7070
<!-- Step 3: Sort by Change to "Price". -->
71-
<actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPrice"/>
71+
<actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPriceAscending"/>
7272
<!-- Step 4: Click the arrow to sort by price desc/asc by clicking on UP/Down arrow. -->
7373
<actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection"/>
7474
<selectOption selector="{{StorefrontCategoryTopToolbarSection.sortByDropdown}}" userInput="Price" stepKey="selectSortByProductName"/>

0 commit comments

Comments
 (0)