Skip to content

Commit 4fd547e

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
- removed extra space and sortProductByPriceAscending stepKey
1 parent 411a35c commit 4fd547e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<test name="StorefrontAssertsCustomerBehaviourForProductTest">
1212
<annotations>
1313
<features value="Catalog"/>
14-
<stories value="Verify customer behaviour on storefront in product page"/>
15-
<title value="Check customer behaviour for product page on storefront if remember category pagination is enabled"/>
16-
<description value="Admin verifies the customer or guest can able to sort product on storefront when remember category pagination is enabled"/>
14+
<stories value="Product Sorting for guest customer in storefront"/>
15+
<title value="Sorting of product for guest customer on storefront if remember category pagination is enabled"/>
16+
<description value="Guest Customer should able to verify the sorting of product on storefront when remember category pagination is enabled"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="AC-8905"/>
1919
<group value="catalog"/>
@@ -69,10 +69,8 @@
6969
<waitForText userInput="$product3.name$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="seeProduct3"/>
7070
<!-- Step 3: Sort by Change to "Price". -->
7171
<selectOption selector="{{StorefrontCategoryTopToolbarSection.sortByDropdown}}" userInput="Price" stepKey="selectSortByPriceFromDropdown"/>
72-
<actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPriceAscending"/>
7372
<!-- Step 4: Click the arrow to sort by price desc/asc by clicking on UP/Down arrow. -->
7473
<actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection"/>
75-
7674
<actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition">
7775
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
7876
<argument name="userInput" value="$$product1.name$$"/>
@@ -85,8 +83,9 @@
8583
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
8684
<argument name="userInput" value="$$product3.name$$"/>
8785
</actionGroup>
88-
<!-- Step 5: Try clicking multiple times on arrow. -->
86+
<!-- Step 5: Clicking on arrows for asc/desc of products -->
8987
<actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection"/>
88+
<!-- Verify the products in ascending by price -->
9089
<actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition1">
9190
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
9291
<argument name="userInput" value="$$product3.name$$"/>
@@ -99,7 +98,9 @@
9998
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
10099
<argument name="userInput" value="$$product1.name$$"/>
101100
</actionGroup>
101+
<!-- Sort product by descending order -->
102102
<actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection2"/>
103+
<!-- Verify the products in descending by price -->
103104
<actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition2">
104105
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
105106
<argument name="userInput" value="$$product1.name$$"/>
@@ -112,7 +113,9 @@
112113
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
113114
<argument name="userInput" value="$$product3.name$$"/>
114115
</actionGroup>
116+
<!-- Sort product by ascending order -->
115117
<actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection3"/>
118+
<!-- Verify the products in ascending by price -->
116119
<actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition3">
117120
<argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
118121
<argument name="userInput" value="$$product3.name$$"/>

0 commit comments

Comments
 (0)