|
154 | 154 | <click selector="{{AdminProductGridConfirmActionSection.ok}}" stepKey="confirmProductDelete"/>
|
155 | 155 |
|
156 | 156 | <!-- Should not see the records in the admin panel -->
|
157 |
| - <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="A total of 3 record(s) have been deleted." stepKey="seeSuccessMsg"/> |
| 157 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMsg"> |
| 158 | + <argument name="message" value="A total of 3 record(s) have been deleted."/> |
| 159 | + </actionGroup> |
158 | 160 | <seeNumberOfElements selector="{{AdminProductGridSection.productGridRows}}" userInput="0" stepKey="seeNoResults"/>
|
159 | 161 |
|
160 | 162 | <!-- after delete, assert product pages are 404 -->
|
161 |
| - <amOnPage url="$$createProduct1.custom_attributes[url_key]$$.html" stepKey="gotoStorefront1"/> |
162 |
| - <waitForPageLoad stepKey="waitForProduct1"/> |
163 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="Whoops, our bad..." stepKey="seeWhoops1"/> |
164 |
| - <dontSee selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createProduct1.name$$" stepKey="dontSeeProduct1"/> |
165 |
| - <amOnPage url="$$createProduct1.custom_attributes[url_key]$$.html" stepKey="gotoStorefront2"/> |
166 |
| - <waitForPageLoad stepKey="waitForProduct2"/> |
167 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="Whoops, our bad..." stepKey="seeWhoops2"/> |
168 |
| - <dontSee selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createProduct1.name$$" stepKey="dontSeeProduct2"/> |
169 |
| - <amOnPage url="$$createProduct1.custom_attributes[url_key]$$.html" stepKey="gotoStorefront3"/> |
170 |
| - <waitForPageLoad stepKey="waitForProduct3"/> |
171 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="Whoops, our bad..." stepKey="seeWhoops3"/> |
172 |
| - <dontSee selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createProduct1.name$$" stepKey="dontSeeProduct3"/> |
| 163 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="gotoStorefront1"> |
| 164 | + <argument name="product" value="$$createProduct1$$"/> |
| 165 | + </actionGroup> |
| 166 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProduct1"/> |
| 167 | + <actionGroup ref="StorefrontAssertPageNotFoundErrorOnProductDetailPageActionGroup" stepKey="seeWhoops1"> |
| 168 | + <argument name="product" value="$$createProduct1$$"/> |
| 169 | + </actionGroup> |
| 170 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="dontSeeProduct1"/> |
| 171 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="gotoStorefront2"> |
| 172 | + <argument name="product" value="$$createProduct2$$"/> |
| 173 | + </actionGroup> |
| 174 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProduct2"/> |
| 175 | + <actionGroup ref="StorefrontAssertPageNotFoundErrorOnProductDetailPageActionGroup" stepKey="seeWhoops2"> |
| 176 | + <argument name="product" value="$$createProduct2$$"/> |
| 177 | + </actionGroup> |
| 178 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="dontSeeProduct2"/> |
| 179 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="gotoStorefront3"> |
| 180 | + <argument name="product" value="$$createProduct3$$"/> |
| 181 | + </actionGroup> |
| 182 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProduct3"/> |
| 183 | + <actionGroup ref="StorefrontAssertPageNotFoundErrorOnProductDetailPageActionGroup" stepKey="seeWhoops3"> |
| 184 | + <argument name="product" value="$$createProduct3$$"/> |
| 185 | + </actionGroup> |
| 186 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="dontSeeProduct3"/> |
173 | 187 | </test>
|
174 | 188 | </tests>
|
0 commit comments