|
11 | 11 | <test name="StorefrontAssertsCustomerBehaviourForProductTest">
|
12 | 12 | <annotations>
|
13 | 13 | <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"/> |
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="AC-8905"/>
|
19 | 19 | <group value="catalog"/>
|
|
69 | 69 | <waitForText userInput="$product3.name$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="seeProduct3"/>
|
70 | 70 | <!-- Step 3: Sort by Change to "Price". -->
|
71 | 71 | <selectOption selector="{{StorefrontCategoryTopToolbarSection.sortByDropdown}}" userInput="Price" stepKey="selectSortByPriceFromDropdown"/>
|
72 |
| - <actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPriceAscending"/> |
73 | 72 | <!-- Step 4: Click the arrow to sort by price desc/asc by clicking on UP/Down arrow. -->
|
74 | 73 | <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection"/>
|
75 |
| - |
76 | 74 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition">
|
77 | 75 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
|
78 | 76 | <argument name="userInput" value="$$product1.name$$"/>
|
|
85 | 83 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
|
86 | 84 | <argument name="userInput" value="$$product3.name$$"/>
|
87 | 85 | </actionGroup>
|
88 |
| - <!-- Step 5: Try clicking multiple times on arrow. --> |
| 86 | + <!-- Step 5: Clicking on arrows for asc/desc of products --> |
89 | 87 | <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection"/>
|
| 88 | + <!-- Verify the products in ascending by price --> |
90 | 89 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition1">
|
91 | 90 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
|
92 | 91 | <argument name="userInput" value="$$product3.name$$"/>
|
|
99 | 98 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
|
100 | 99 | <argument name="userInput" value="$$product1.name$$"/>
|
101 | 100 | </actionGroup>
|
| 101 | + <!-- Sort product by descending order --> |
102 | 102 | <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection2"/>
|
| 103 | + <!-- Verify the products in descending by price --> |
103 | 104 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition2">
|
104 | 105 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
|
105 | 106 | <argument name="userInput" value="$$product1.name$$"/>
|
|
112 | 113 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/>
|
113 | 114 | <argument name="userInput" value="$$product3.name$$"/>
|
114 | 115 | </actionGroup>
|
| 116 | + <!-- Sort product by ascending order --> |
115 | 117 | <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection3"/>
|
| 118 | + <!-- Verify the products in ascending by price --> |
116 | 119 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition3">
|
117 | 120 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/>
|
118 | 121 | <argument name="userInput" value="$$product3.name$$"/>
|
|
0 commit comments