|
52 | 52 |
|
53 | 53 | <!--Save the product-->
|
54 | 54 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButton"/>
|
55 |
| - <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/> |
| 55 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="messageYouSavedTheProductIsShown"> |
| 56 | + <argument name="message" value="You saved the product."/> |
| 57 | + </actionGroup> |
56 | 58 |
|
57 | 59 | <actionGroup ref="AddRelatedProductBySkuActionGroup" stepKey="addRelatedProduct1">
|
58 | 60 | <argument name="sku" value="$$simpleProduct1.sku$$"/>
|
|
63 | 65 |
|
64 | 66 | <!--Save the product-->
|
65 | 67 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButtonAfterEdit"/>
|
66 |
| - <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShownAgain"/> |
| 68 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="messageYouSavedTheProductIsShownAgain"> |
| 69 | + <argument name="message" value="You saved the product."/> |
| 70 | + </actionGroup> |
67 | 71 |
|
68 | 72 | <!--See related product in admin-->
|
69 |
| - <scrollTo selector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDropdown}}" stepKey="scrollTo"/> |
70 |
| - <conditionalClick selector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDropdown}}" dependentSelector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDependent}}" visible="false" stepKey="openDropDownIfClosedRelatedSee"/> |
71 |
| - <see selector="{{AdminProductFormRelatedUpSellCrossSellSection.selectedRelatedProduct}}" userInput="$$simpleProduct1.name$$" stepKey="seeRelatedProduct"/> |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollTo"/> |
| 74 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openDropDownIfClosedRelatedSee"/> |
| 75 | + <actionGroup ref="AssertTextInAdminProductRelatedUpSellCrossSellSectionActionGroup" stepKey="seeRelatedProduct"> |
| 76 | + <argument name="element" value="AdminProductFormRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
| 77 | + <argument name="expectedText" value="$$simpleProduct1.name$$"/> |
| 78 | + </actionGroup> |
72 | 79 |
|
73 | 80 | <magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
|
74 | 81 |
|
75 | 82 | <!--See related product in storefront-->
|
76 |
| - <amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="goToStorefront"/> |
77 |
| - <waitForPageLoad stepKey="waitForStorefront"/> |
78 |
| - <see userInput="$$simpleProduct1.name$$" stepKey="seeRelatedProductInStorefront"/> |
| 83 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="goToStorefront"> |
| 84 | + <argument name="productUrl" value="{{BundleProduct.urlKey}}"/> |
| 85 | + </actionGroup> |
| 86 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStorefront"/> |
| 87 | + <actionGroup ref="StorefrontAssertRelatedProductOnProductPageActionGroup" stepKey="seeRelatedProductInStorefront"> |
| 88 | + <argument name="productName" value="$$simpleProduct1.name$$"/> |
| 89 | + </actionGroup> |
79 | 90 | </test>
|
80 | 91 | </tests>
|
0 commit comments