|
46 | 46 | <click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="saveAndApply"/>
|
47 | 47 |
|
48 | 48 | <!--<click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="saveAndApply"/>-->
|
49 |
| - <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the rule." stepKey="assertSuccess"/> |
| 49 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="assertSuccess"> |
| 50 | + <argument name="message" value="You saved the rule."/> |
| 51 | + </actionGroup> |
50 | 52 |
|
51 | 53 | <comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
|
52 | 54 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
|
|
55 | 57 | <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="goToCategory1">
|
56 | 58 | <argument name="category" value="$createCategory$"/>
|
57 | 59 | </actionGroup>
|
58 |
| - <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$$createProduct.name$$" stepKey="seeProduct1"/> |
59 |
| - <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$110.70" stepKey="seeDiscountedPrice1"/> |
| 60 | + <actionGroup ref="AssertStorefrontProductIsPresentOnCategoryPageActionGroup" stepKey="seeProduct1"> |
| 61 | + <argument name="productName" value="$$createProduct.name$$"/> |
| 62 | + </actionGroup> |
| 63 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeDiscountedPrice1"> |
| 64 | + <argument name="productName" value="$$createProduct.name$$"/> |
| 65 | + <argument name="productPrice" value="$110.70"/> |
| 66 | + </actionGroup> |
60 | 67 |
|
61 | 68 | <!-- Create a user account -->
|
62 | 69 | <actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
|
|
73 | 80 | <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="goToCategory2">
|
74 | 81 | <argument name="category" value="$createCategory$"/>
|
75 | 82 | </actionGroup>
|
76 |
| - <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$$createProduct.name$$" stepKey="seeProduct2"/> |
77 |
| - <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$123.00" stepKey="seeDiscountedPrice2"/> |
| 83 | + <actionGroup ref="AssertStorefrontProductIsPresentOnCategoryPageActionGroup" stepKey="seeProduct2"> |
| 84 | + <argument name="productName" value="$$createProduct.name$$"/> |
| 85 | + </actionGroup> |
| 86 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeDiscountedPrice2"> |
| 87 | + <argument name="productName" value="$$createProduct.name$$"/> |
| 88 | + <argument name="productPrice" value="$123.00"/> |
| 89 | + </actionGroup> |
78 | 90 | </test>
|
79 | 91 | </tests>
|
0 commit comments