|
40 | 40 | <requiredEntity createDataKey="category"/> |
41 | 41 | </createData> |
42 | 42 | <createData entity="Simple_US_Customer" stepKey="customer"/> |
43 | | - <!-- Precondition Step.2: "Remember Category Pagination" should be enabled in the configuration --> |
| 43 | + <!-- Precondition Step.2: Enable Remember Category Pagination in configuration --> |
44 | 44 | <actionGroup ref="AdminEnableRememberCategoryPaginationActionGroup" stepKey="enableRememberCategoryPagination"/> |
45 | 45 | </before> |
46 | 46 | <after> |
|
60 | 60 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin"> |
61 | 61 | <argument name="Customer" value="$$customer$$"/> |
62 | 62 | </actionGroup> |
| 63 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 64 | + <argument name="indices" value=""/> |
| 65 | + </actionGroup> |
63 | 66 | <!-- Step 2: Search for the product Bag --> |
64 | 67 | <actionGroup ref="StoreFrontQuickSearchActionGroup" stepKey="searchByCreatedTerm"> |
65 | 68 | <argument name="query" value="Bag"/> |
|
72 | 75 | <actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPriceAscending"/> |
73 | 76 | <!-- Step 4: Click the arrow to sort by price desc/asc by clicking on UP/Down arrow. --> |
74 | 77 | <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection"/> |
75 | | - <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection"/> |
76 | | - <selectOption selector="{{StorefrontCategoryTopToolbarSection.showDropdown}}" userInput="24" stepKey="selectShowProducts"/> |
| 78 | + |
77 | 79 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition"> |
78 | 80 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/> |
79 | | - <argument name="userInput" value="$$product3.name$$"/> |
| 81 | + <argument name="userInput" value="$$product1.name$$"/> |
80 | 82 | </actionGroup> |
81 | 83 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductSecondPosition"> |
82 | 84 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('2')}}"/> |
83 | 85 | <argument name="userInput" value="$$product2.name$$"/> |
84 | 86 | </actionGroup> |
85 | 87 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductThirdPosition"> |
86 | 88 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/> |
87 | | - <argument name="userInput" value="$$product1.name$$"/> |
| 89 | + <argument name="userInput" value="$$product3.name$$"/> |
88 | 90 | </actionGroup> |
89 | 91 | <!-- Step 5: Try clicking multiple times on arrow. --> |
90 | | - <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection1"/> |
| 92 | + <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection"/> |
91 | 93 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition1"> |
92 | 94 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/> |
93 | | - <argument name="userInput" value="$$product1.name$$"/> |
| 95 | + <argument name="userInput" value="$$product3.name$$"/> |
94 | 96 | </actionGroup> |
95 | 97 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductSecondPosition1"> |
96 | 98 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('2')}}"/> |
97 | 99 | <argument name="userInput" value="$$product2.name$$"/> |
98 | 100 | </actionGroup> |
99 | 101 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductThirdPosition1"> |
100 | 102 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/> |
101 | | - <argument name="userInput" value="$$product3.name$$"/> |
| 103 | + <argument name="userInput" value="$$product1.name$$"/> |
102 | 104 | </actionGroup> |
103 | | - <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setDescendingDirection2"/> |
| 105 | + <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection2"/> |
104 | 106 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition2"> |
105 | 107 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/> |
106 | | - <argument name="userInput" value="$$product3.name$$"/> |
| 108 | + <argument name="userInput" value="$$product1.name$$"/> |
107 | 109 | </actionGroup> |
108 | 110 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductSecondPosition2"> |
109 | 111 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('2')}}"/> |
110 | 112 | <argument name="userInput" value="$$product2.name$$"/> |
111 | 113 | </actionGroup> |
112 | 114 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductThirdPosition2"> |
113 | 115 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/> |
114 | | - <argument name="userInput" value="$$product1.name$$"/> |
| 116 | + <argument name="userInput" value="$$product3.name$$"/> |
115 | 117 | </actionGroup> |
116 | | - <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection3"/> |
| 118 | + <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection3"/> |
117 | 119 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition3"> |
118 | 120 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('1')}}"/> |
119 | | - <argument name="userInput" value="$$product1.name$$"/> |
| 121 | + <argument name="userInput" value="$$product3.name$$"/> |
120 | 122 | </actionGroup> |
121 | 123 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductSecondPosition3"> |
122 | 124 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('2')}}"/> |
123 | 125 | <argument name="userInput" value="$$product2.name$$"/> |
124 | 126 | </actionGroup> |
125 | 127 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductThirdPosition3"> |
126 | 128 | <argument name="selector" value="{{StorefrontCategoryMainSection.lineProductName('3')}}"/> |
127 | | - <argument name="userInput" value="$$product3.name$$"/> |
| 129 | + <argument name="userInput" value="$$product1.name$$"/> |
128 | 130 | </actionGroup> |
129 | 131 | </test> |
130 | 132 | </tests> |
0 commit comments