|
38 | 38 | <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>
|
39 | 39 | </actionGroup>
|
40 | 40 |
|
| 41 | + <!-- Guest checkout filling shipping section without region --> |
| 42 | + <actionGroup name="GuestCheckoutFillingShippingSectionWithoutRegionActionGroup"> |
| 43 | + <arguments> |
| 44 | + <argument name="customerVar"/> |
| 45 | + <argument name="customerAddressVar"/> |
| 46 | + </arguments> |
| 47 | + <fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/> |
| 48 | + <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/> |
| 49 | + <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/> |
| 50 | + <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/> |
| 51 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{customerAddressVar.city}}" stepKey="enterCity"/> |
| 52 | + <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{customerAddressVar.postcode}}" stepKey="enterPostcode"/> |
| 53 | + <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{customerAddressVar.country_id}}" stepKey="enterCountry"/> |
| 54 | + <fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddressVar.telephone}}" stepKey="enterTelephone"/> |
| 55 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
| 56 | + <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/> |
| 57 | + <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
| 58 | + <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
| 59 | + <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
| 60 | + <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/> |
| 61 | + </actionGroup> |
| 62 | + |
| 63 | + <!-- Guest checkout filling shipping section with unavailable payments--> |
| 64 | + <actionGroup name="GuestCheckoutFillingShippingSectionUnavailablePaymentActionGroup"> |
| 65 | + <arguments> |
| 66 | + <argument name="customerVar"/> |
| 67 | + <argument name="customerAddressVar"/> |
| 68 | + </arguments> |
| 69 | + <fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/> |
| 70 | + <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/> |
| 71 | + <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/> |
| 72 | + <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/> |
| 73 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{customerAddressVar.city}}" stepKey="enterCity"/> |
| 74 | + <selectOption selector="{{CheckoutShippingSection.region}}" userInput="{{customerAddressVar.state}}" stepKey="selectRegion"/> |
| 75 | + <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{customerAddressVar.postcode}}" stepKey="enterPostcode"/> |
| 76 | + <fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddressVar.telephone}}" stepKey="enterTelephone"/> |
| 77 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
| 78 | + <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/> |
| 79 | + <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
| 80 | + <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
| 81 | + <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/> |
| 82 | + <waitForElementVisible selector="{{CheckoutPaymentSection.noQuotes}}" stepKey="waitMessage"/> |
| 83 | + <see userInput="No Payment method available." stepKey="checkMessage"/> |
| 84 | + </actionGroup> |
| 85 | + |
41 | 86 | <!-- Logged in user checkout filling shipping section -->
|
42 | 87 | <actionGroup name="LoggedInUserCheckoutFillingShippingSectionActionGroup">
|
43 | 88 | <arguments>
|
|
59 | 104 | <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>
|
60 | 105 | </actionGroup>
|
61 | 106 |
|
| 107 | + <!-- Logged in user checkout filling shipping section --> |
| 108 | + <actionGroup name="LoggedInUserCheckoutAddNewShippingSectionWithoutRegionActionGroup"> |
| 109 | + <arguments> |
| 110 | + <argument name="customerVar"/> |
| 111 | + <argument name="customerAddressVar"/> |
| 112 | + </arguments> |
| 113 | + <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/> |
| 114 | + <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/> |
| 115 | + <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/> |
| 116 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{customerAddressVar.city}}" stepKey="enterCity"/> |
| 117 | + <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{customerAddressVar.postcode}}" stepKey="enterPostcode"/> |
| 118 | + <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{customerAddressVar.country_id}}" stepKey="enterCountry"/> |
| 119 | + <fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddressVar.telephone}}" stepKey="enterTelephone"/> |
| 120 | + <click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="clickSaveAddress"/> |
| 121 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
| 122 | + <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/> |
| 123 | + <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
| 124 | + <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
| 125 | + <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
| 126 | + <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/> |
| 127 | + </actionGroup> |
| 128 | + |
62 | 129 | <!-- Check product in checkout cart items -->
|
63 | 130 | <actionGroup name="CheckProductInCheckoutCartItemsActionGroup">
|
64 | 131 | <arguments>
|
|
0 commit comments