|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 | 3 | /**
|
4 |
| - * Copyright 2024 Adobe |
| 4 | + * Copyright 2025 Adobe |
5 | 5 | * All Rights Reserved.
|
6 | 6 | */
|
7 | 7 | -->
|
|
12 | 12 | <annotations>
|
13 | 13 | <description>Validates that the Fedex Shipping method prices in the checkout page.</description>
|
14 | 14 | </annotations>
|
15 |
| - <arguments> |
16 |
| - <argument name="smartPostPrice" type="string" defaultValue="$17.25"/> |
17 |
| - <argument name="groundPrice" type="string" defaultValue="$13.72"/> |
18 |
| - <argument name="expressSaverPrice" type="string" defaultValue="$37.97"/> |
19 |
| - <argument name="twoDayPrice" type="string" defaultValue="$44.11"/> |
20 |
| - <argument name="twoDayAMPrice" type="string" defaultValue="$50.91"/> |
21 |
| - <argument name="standardOvernightPrice" type="string" defaultValue="$90.31"/> |
22 |
| - <argument name="priorityOvernightPrice" type="string" defaultValue="$100.37"/> |
23 |
| - </arguments> |
24 | 15 | <waitForPageLoad stepKey="waitForPageLoad2" />
|
25 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.smartPostFedexPrice}}" userInput="{{smartPostPrice}}" stepKey="waitForSmartPostPriceVisible"/> |
26 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.groundFedexPrice}}" userInput="{{groundPrice}}" stepKey="waitForGroundPriceVisible"/> |
27 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.expressSaverFedexPrice}}" userInput="{{expressSaverPrice}}" stepKey="waitForExpressPriceVisible"/> |
28 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.twoDayFedexPrice}}" userInput="{{twoDayPrice}}" stepKey="waitForTwodayPriceVisible"/> |
29 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.twoDayAMFedexPrice}}" userInput="{{twoDayAMPrice}}" stepKey="waitForTwodayAMPriceVisible"/> |
30 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.standardOvernightFedexPrice}}" userInput="{{standardOvernightPrice}}" stepKey="waitForStandardPriceVisible"/> |
31 |
| - <waitForText selector="{{CheckoutShippingMethodsSection.priorityOvernightFedexPrice}}" userInput="{{priorityOvernightPrice}}" stepKey="waitForOvernightPriceVisible"/> |
| 16 | + <waitForElement selector="{{CheckoutShippingMethodsSection.smartPostFedexMethod}}" stepKey="waitForSmartPostFedexMethod"/> |
| 17 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.smartPostFedexPrice}}" stepKey="smartPostPrice"/> |
| 18 | + <assertRegExp stepKey="waitForSmartPostPriceVisible"> |
| 19 | + <actualResult type="variable">$smartPostPrice</actualResult> |
| 20 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 21 | + </assertRegExp> |
| 22 | + <waitForElement selector="{{CheckoutShippingMethodsSection.groundFedexMethod}}" stepKey="waitForGroundFedexMethod"/> |
| 23 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.groundFedexPrice}}" stepKey="groundFedexPrice"/> |
| 24 | + <assertRegExp stepKey="waitForGroundPriceVisible"> |
| 25 | + <actualResult type="variable">$groundFedexPrice</actualResult> |
| 26 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 27 | + </assertRegExp> |
| 28 | + <waitForElement selector="{{CheckoutShippingMethodsSection.expressSaverFedexPrice}}" stepKey="waitForExpressSaverFedexMethod"/> |
| 29 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.expressSaverFedexPrice}}" stepKey="expressSaverFedexPrice"/> |
| 30 | + <assertRegExp stepKey="waitForExpressPriceVisible"> |
| 31 | + <actualResult type="variable">$expressSaverFedexPrice</actualResult> |
| 32 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 33 | + </assertRegExp> |
| 34 | + <waitForElement selector="{{CheckoutShippingMethodsSection.twoDayFedexMethod}}" stepKey="waitForRwoDayFedexMethod"/> |
| 35 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.twoDayFedexPrice}}" stepKey="twoDayFedexPrice"/> |
| 36 | + <assertRegExp stepKey="waitForTwodayPriceVisible"> |
| 37 | + <actualResult type="variable">$twoDayFedexPrice</actualResult> |
| 38 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 39 | + </assertRegExp> |
| 40 | + <waitForElement selector="{{CheckoutShippingMethodsSection.twoDayAMFedexMethod}}" stepKey="waitForTwoDayAMFedexMethod"/> |
| 41 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.twoDayAMFedexPrice}}" stepKey="twoDayAMFedexPrice"/> |
| 42 | + <assertRegExp stepKey="waitForTwodayAMPriceVisible"> |
| 43 | + <actualResult type="variable">$twoDayAMFedexPrice</actualResult> |
| 44 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 45 | + </assertRegExp> |
| 46 | + <waitForElement selector="{{CheckoutShippingMethodsSection.standardOvernightFedexMethod}}" stepKey="waitForStandardOvernightFedexMethod"/> |
| 47 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.standardOvernightFedexPrice}}" stepKey="standardOvernightFedexPrice"/> |
| 48 | + <assertRegExp stepKey="waitForStandardPriceVisible"> |
| 49 | + <actualResult type="variable">$standardOvernightFedexPrice</actualResult> |
| 50 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 51 | + </assertRegExp> |
| 52 | + <waitForElement selector="{{CheckoutShippingMethodsSection.priorityOvernightFedexMethod}}" stepKey="waitForPriorityOvernightFedexMethod"/> |
| 53 | + <grabTextFrom selector="{{CheckoutShippingMethodsSection.priorityOvernightFedexPrice}}" stepKey="priorityOvernightFedexPrice"/> |
| 54 | + <assertRegExp stepKey="waitForOvernightPriceVisible"> |
| 55 | + <actualResult type="variable">$priorityOvernightFedexPrice</actualResult> |
| 56 | + <expectedResult type="string">\$([0-9]+(\.[0-9]+)?)$</expectedResult> |
| 57 | + </assertRegExp> |
32 | 58 | </actionGroup>
|
33 | 59 | </actionGroups>
|
0 commit comments