|
26 | 26 | </after>
|
27 | 27 | <!--Step 1 Add simple product to the cart -->
|
28 | 28 | <actionGroup ref="StorefrontAddSimpleProductToShoppingCartActionGroup" stepKey="addProductToCart">
|
29 |
| - <argument name="product" value="$$createSimpleProduct$$"/> |
| 29 | + <argument name="product" value="$createSimpleProduct$"/> |
30 | 30 | </actionGroup>
|
31 | 31 |
|
32 | 32 | <!--Step 2 Proceed to Checkout and be on Shipping page -->
|
33 | 33 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckout"/>
|
34 | 34 |
|
35 | 35 | <!--Step 3 Select Country as United Kingdom and Refresh the page -->
|
36 |
| - <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country}}" stepKey="selectCounty"/> |
| 36 | + <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country_id}}" stepKey="selectCounty"/> |
37 | 37 | <waitForPageLoad stepKey="waitFormToReload"/>
|
38 | 38 | <actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
|
39 | 39 | <!-- Assert Selected Country is United States -->
|
40 | 40 | <seeOptionIsSelected selector="{{CheckoutShippingSection.country}}" userInput="{{US_Address_TX.country}}" stepKey="selectedCountryIsUnitedStates"/>
|
41 | 41 |
|
42 | 42 | <!--Step 4 Select Country as United Kingdom, select address street and Refresh the page-->
|
43 |
| - <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country}}" stepKey="selectUnitedKingdomCounty"/> |
| 43 | + <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country_id}}" stepKey="selectUnitedKingdomCounty"/> |
| 44 | + <waitForPageLoad stepKey="waitFormToReloadAfterSelectCountry"/> |
44 | 45 | <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{UK_Address.street[0]}}" stepKey="enterAddressStreet"/>
|
45 | 46 | <actionGroup ref="ReloadPageActionGroup" stepKey="refreshPageAfterAddressIsAdded"/>
|
46 | 47 | <!-- Assert Entered details should be retained and State/Province field should be displayed as an optional field (without * ) -->
|
47 | 48 | <seeOptionIsSelected selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country}}" stepKey="selectedCountryIsUnitedKingdom"/>
|
48 | 49 | <seeInField selector="{{CheckoutShippingSection.street}}" userInput="{{UK_Address.street[0]}}" stepKey="seeAddressStreetUnitedKingdom"/>
|
49 |
| - <dontSeeElement selector="{{CheckoutShippingSection.regionFieldIsRequired}}" stepKey="assertStateProvinceIsNotRequired"/> |
| 50 | + <dontSeeElement selector="{{CheckoutShippingSection.shippingAddressRequiredField('shippingAddress.region_id')}}" stepKey="assertStateProvinceIsNotRequired"/> |
50 | 51 | </test>
|
51 | 52 | </tests>
|
0 commit comments