|
80 | 80 | <createData entity="ApiBundleProductPriceViewRange" stepKey="createThirdBundleProduct">
|
81 | 81 | <requiredEntity createDataKey="createCategory"/>
|
82 | 82 | </createData>
|
83 |
| - <createData entity="DropDownBundleOption" stepKey="thirdProductBundleOption"> |
| 83 | + <createData entity="DropDownBundleOption" stepKey="createThirdProductBundleOption"> |
84 | 84 | <requiredEntity createDataKey="createThirdBundleProduct"/>
|
85 | 85 | </createData>
|
86 | 86 | <createData entity="ApiBundleLink" stepKey="createBundleFirstLink">
|
87 | 87 | <requiredEntity createDataKey="createThirdBundleProduct"/>
|
88 |
| - <requiredEntity createDataKey="thirdProductBundleOption"/> |
| 88 | + <requiredEntity createDataKey="createThirdProductBundleOption"/> |
89 | 89 | <requiredEntity createDataKey="createFirstProductForBundle"/>
|
90 | 90 | </createData>
|
91 | 91 | <createData entity="ApiBundleLink" stepKey="createBundleSecondLink">
|
92 | 92 | <requiredEntity createDataKey="createThirdBundleProduct"/>
|
93 |
| - <requiredEntity createDataKey="thirdProductBundleOption"/> |
| 93 | + <requiredEntity createDataKey="createThirdProductBundleOption"/> |
94 | 94 | <requiredEntity createDataKey="createSecondProductForBundle"/>
|
95 | 95 | </createData>
|
96 | 96 |
|
|
116 | 116 | <argument name="categoryName" value="$$createCategory.name$$"/>
|
117 | 117 | </actionGroup>
|
118 | 118 |
|
119 |
| - <!-- Asset first bundle products in category product grid --> |
120 |
| - <seeElement selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createFirstBundleProduct.name$$)}}" stepKey="assertFirstBundleProduct"/> |
| 119 | + <!-- Assert first bundle products in category product grid --> |
| 120 | + <actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertFirstBundleProduct"> |
| 121 | + <argument name="product" value="$$createFirstBundleProduct$$"/> |
| 122 | + </actionGroup> |
121 | 123 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seePriceRangeFromForFirstBundleProduct">
|
122 | 124 | <argument name="selector" value="{{StorefrontCategoryProductSection.priceFromByProductId($$createFirstBundleProduct.id$$)}}"/>
|
123 | 125 | <argument name="userInput" value="From $100.00"/>
|
|
127 | 129 | <argument name="userInput" value="To $123.00"/>
|
128 | 130 | </actionGroup>
|
129 | 131 |
|
130 |
| - <!-- Asset second bundle products in category product grid --> |
131 |
| - <seeElement selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSecondBundleProduct.name$$)}}" stepKey="assertSecondBundleProduct"/> |
| 132 | + <!-- Assert second bundle products in category product grid --> |
| 133 | + <actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertSecondBundleProduct"> |
| 134 | + <argument name="product" value="$$createSecondBundleProduct$$"/> |
| 135 | + </actionGroup> |
132 | 136 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seePriceRangeFromForSecondBundleProduct">
|
133 | 137 | <argument name="selector" value="{{StorefrontCategoryProductSection.priceFromByProductId($$createSecondBundleProduct.id$$)}}"/>
|
134 | 138 | <argument name="userInput" value="From $10.00"/>
|
|
138 | 142 | <argument name="userInput" value="To $123.00"/>
|
139 | 143 | </actionGroup>
|
140 | 144 |
|
141 |
| - <!-- Asset third bundle products in category product grid --> |
142 |
| - <seeElement selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createThirdBundleProduct.name$$)}}" stepKey="assertThirdBundleProduct"/> |
| 145 | + <!-- Assert third bundle products in category product grid --> |
| 146 | + <actionGroup ref="AssertProductOnCategoryPageActionGroup" stepKey="assertThirdBundleProduct"> |
| 147 | + <argument name="product" value="$$createThirdBundleProduct$$"/> |
| 148 | + </actionGroup> |
143 | 149 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seePriceRangeFromForThirdBundleProduct">
|
144 | 150 | <argument name="selector" value="{{StorefrontCategoryProductSection.priceFromByProductId($$createThirdBundleProduct.id$$)}}"/>
|
145 | 151 | <argument name="userInput" value="From $123.00"/>
|
|
155 | 161 | <!-- Sort products By Price -->
|
156 | 162 | <actionGroup ref="StorefrontCategoryPageSortProductActionGroup" stepKey="sortProductByPrice"/>
|
157 | 163 | <!-- Set Ascending Direction -->
|
158 |
| - <actionGroup ref="StorefrontCategoryPageSortDirectionActionGroup" stepKey="setAscendingDirection"> |
159 |
| - <argument name="directionSelector" value="{{StorefrontCategoryTopToolbarSection.sortDirectionAsc}}"/> |
160 |
| - </actionGroup> |
| 164 | + <actionGroup ref="StorefrontCategoryPageSortAscendingActionGroup" stepKey="setAscendingDirection"/> |
161 | 165 |
|
162 | 166 | <!-- Assert new products positions -->
|
163 | 167 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductFirstPosition">
|
|
174 | 178 | </actionGroup>
|
175 | 179 |
|
176 | 180 | <!-- Set Descending Direction -->
|
177 |
| - <actionGroup ref="StorefrontCategoryPageSortDirectionActionGroup" stepKey="setDescendingDirection"> |
178 |
| - <argument name="directionSelector" value="{{StorefrontCategoryTopToolbarSection.sortDirectionDesc}}"/> |
179 |
| - </actionGroup> |
| 181 | + <actionGroup ref="StorefrontCategoryPageSortDescendingActionGroup" stepKey="setDescendingDirection"/> |
180 | 182 |
|
181 | 183 | <!-- Assert new products positions -->
|
182 | 184 | <actionGroup ref="AssertStorefrontElementVisibleActionGroup" stepKey="seeProductNewFirstPosition">
|
|
0 commit comments