|
76 | 76 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
|
77 | 77 | <argument name="Customer" value="$$createCustomer$$" />
|
78 | 78 | </actionGroup>
|
79 |
| - <amOnPage url="customer/address" stepKey="OpenCustomerAddNewAddress"/> |
80 |
| - <waitForPageLoad stepKey="waitForShippingAddressPageToLoad"/> |
81 |
| - <!--Open change shipping address page--> |
82 |
| - <waitForElementClickable selector="{{StorefrontCustomerAddressesSection.changeShippingAddress}}" stepKey="waitForChangeShippingAddress"/> |
83 |
| - <click selector="{{StorefrontCustomerAddressesSection.changeShippingAddress}}" stepKey="openChangeShippingAddress"/> |
84 |
| - <clearField stepKey="clearZip" selector="{{StorefrontCustomerAddressFormSection.zip}}"/> |
85 |
| - <fillField stepKey="fillZip" userInput="20011" selector="{{StorefrontCustomerAddressFormSection.zip}}"/> |
86 |
| - <click stepKey="saveCustomerAddress" selector="{{StorefrontCustomerAddressFormSection.saveAddress}}"/> |
87 | 79 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
88 | 80 | <!-- Add simple product to cart -->
|
89 | 81 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
|
|
92 | 84 | <!-- Assert that table rate value is correct for US -->
|
93 | 85 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCheckout"/>
|
94 | 86 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingandTax" />
|
95 |
| - <scrollTo selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="scrollToShippingForUS"/> |
96 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$6.99" stepKey="seeShippingForUS1"/> |
| 87 | + <grabValueFrom selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="grabShippingForUS"/> |
| 88 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$grabShippingForUS" stepKey="seeShippingForUS1"/> |
97 | 89 | <waitForPageLoad stepKey="waitForSelectCountry"/>
|
98 | 90 | <!-- Add Virtual product to cart -->
|
99 | 91 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSecondProductToCart1">
|
|
102 | 94 | <!-- Assert that table rate value is correct for US -->
|
103 | 95 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goAgainToCheckout"/>
|
104 | 96 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandToEstimateShippingandTax1"/>
|
105 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$6.99" stepKey="seeShippingForUS"/> |
| 97 | + <grabValueFrom selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="grabShippingForUS1"/> |
| 98 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$grabShippingForUS1" stepKey="seeShippingForUS"/> |
106 | 99 | <!-- Customer Click On Mini Cart -->
|
107 | 100 | <actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickOnMiniCart"/>
|
108 | 101 | <!--Remove an item from the cart using minicart-->
|
|
116 | 109 | <!-- Assert that table rate value is correct for US -->
|
117 | 110 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="navigateToToCheckout"/>
|
118 | 111 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingPrice"/>
|
119 |
| - <grabTextFrom selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="grabTableratePrice1"/> |
120 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$6.99" stepKey="seeShippingForUS2"/> |
| 112 | + <grabValueFrom selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="grabTableratePrice1"/> |
| 113 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$grabTableratePrice1" stepKey="seeShippingForUS2"/> |
121 | 114 | <!-- Assert product details in Mini Cart -->
|
122 | 115 | <actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickOnMiniCart1"/>
|
123 | 116 | <!--Remove an item from the cart using minicart-->
|
|
131 | 124 | <!-- Assert that table rate value is correct for US -->
|
132 | 125 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="navigateAgainToToCheckout"/>
|
133 | 126 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingPrice1"/>
|
134 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$4.99" stepKey="seeShippingForUS3"/> |
| 127 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$4.99" stepKey="seeShippingForUS3"/> |
135 | 128 | <!-- Assert product details in Mini Cart -->
|
136 | 129 | <actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickOnMiniCart2"/>
|
137 | 130 | <!--Remove an item from the cart using minicart-->
|
|
159 | 152 | </actionGroup>
|
160 | 153 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goAgainToCheckout3"/>
|
161 | 154 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingandTax1" />
|
162 |
| - <scrollTo selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="scrollAgainToShippingForUS"/> |
163 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$6.99" stepKey="seeShippingForUS5"/> |
| 155 | + <grabValueFrom selector="{{CheckoutCartSummarySection.shippingPrice}}" stepKey="grabAgainTableratePrice"/> |
| 156 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$grabAgainTableratePrice" stepKey="seeShippingForUS5"/> |
164 | 157 | <!-- Add Virtual product to cart -->
|
165 | 158 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addVirtualProductToCart">
|
166 | 159 | <argument name="product" value="$$createVirtualProduct$$"/>
|
167 | 160 | </actionGroup>
|
168 | 161 | <!-- Assert that table rate value is correct for US -->
|
169 | 162 | <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goAgainToCheckout2"/>
|
170 | 163 | <conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateTableRatePrice"/>
|
171 |
| - <see selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$4.99" stepKey="seeShippingForUS4"/> |
| 164 | + <waitForText selector="{{CheckoutCartSummarySection.shippingPrice}}" userInput="$4.99" stepKey="seeShippingForUS4"/> |
172 | 165 | </test>
|
173 | 166 | </tests>
|
0 commit comments