|
46 | 46 | </after>
|
47 | 47 |
|
48 | 48 | <!-- Verify price is not discounted on category page -->
|
49 |
| - <amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="openCategoryPageOnFrontend"/> |
50 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoaded"/> |
51 |
| - <see selector="{{StorefrontCategoryProductSection.ProductPriceByNumber('1')}}" userInput="$$createProduct.price$$" stepKey="seeProductPriceOnCategoryPage"/> |
| 49 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="openCategoryPageOnFrontend"> |
| 50 | + <argument name="category" value="$$createCategory$$"/> |
| 51 | + </actionGroup> |
| 52 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageLoaded"/> |
| 53 | + <actionGroup ref="StorefrontAssertProductPriceOnCategoryPageActionGroup" stepKey="seeProductPriceOnCategoryPage"> |
| 54 | + <argument name="productName" value="$$createProduct.name$$"/> |
| 55 | + <argument name="productPrice" value="$$createProduct.price$$"/> |
| 56 | + </actionGroup> |
52 | 57 |
|
53 | 58 | <!-- Verify price is not discounted on the product page -->
|
54 |
| - <amOnPage url="{{StorefrontProductPage.url($createProduct.custom_attributes[url_key]$)}}" stepKey="openProductPageOnFrontend"/> |
55 |
| - <waitForPageLoad stepKey="waitForProductPageLoaded"/> |
56 |
| - <see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="$createProduct.price$" stepKey="seePriceOnProductPage"/> |
| 59 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPageOnFrontend"> |
| 60 | + <argument name="product" value="$createProduct$"/> |
| 61 | + </actionGroup> |
| 62 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductPageLoaded"/> |
| 63 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seePriceOnProductPage"> |
| 64 | + <argument name="productPrice" value="$createProduct.price$"/> |
| 65 | + </actionGroup> |
57 | 66 |
|
58 | 67 | <!-- Verify price is not discounted in the cart -->
|
59 | 68 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
|
60 | 69 | <argument name="productName" value="$createProduct.name$"/>
|
61 | 70 | </actionGroup>
|
62 | 71 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="openCartPage" />
|
63 | 72 | <waitForElementVisible selector="{{CheckoutCartSummarySection.subtotal}}" stepKey="waitForSubtotalAppears"/>
|
64 |
| - <see selector="{{CheckoutCartSummarySection.subtotal}}" userInput="$createProduct.price$" stepKey="seeProductPriceOnCartPage"/> |
| 73 | + <actionGroup ref="AssertStorefrontCheckoutPaymentSummarySubtotalActionGroup" stepKey="seeProductPriceOnCartPage"> |
| 74 | + <argument name="orderSubtotal" value="$createProduct.price$"/> |
| 75 | + </actionGroup> |
65 | 76 | </test>
|
66 | 77 | </tests>
|
0 commit comments