|
34 | 34 | <!-- delete simple product -->
|
35 | 35 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
36 | 36 | </after>
|
37 |
| - <!-- Step 1: Go to Storefront as Guest --> |
38 |
| - <!-- Step 2: Add simple product to shopping cart --> |
39 |
| - <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage"> |
| 37 | + <!-- Go to Storefront as Guest and add product to cart --> |
| 38 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="guestOpenProductPage"> |
40 | 39 | <argument name="product" value="$$createProduct$$"/>
|
41 | 40 | </actionGroup>
|
42 | 41 | <waitForPageLoad stepKey="waitForPageLoadToGetTheStorePageOpen"/>
|
43 | 42 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addSimpleProductToCartFromStorefront">
|
44 | 43 | <argument name="productName" value="$createProduct.name$"/>
|
45 | 44 | </actionGroup>
|
46 | 45 | <!-- Proceed to Checkout -->
|
47 |
| - <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/> |
48 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
| 46 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="guestProceedsToCheckout"/> |
| 47 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappearPostClickingOnCheckout"/> |
49 | 48 | <!-- verify shipping screen is opened -->
|
50 | 49 | <waitForElement selector="{{CheckoutShippingSection.isShippingStep}}" stepKey="shippingStepIsOpened"/>
|
51 |
| - <!--Fill Shipping Form--> |
52 | 50 | <!--Filling shipping information and click next-->
|
53 | 51 | <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping">
|
54 | 52 | <argument name="shippingMethod" value="Flat Rate"/>
|
55 | 53 | </actionGroup>
|
56 |
| - <!--Review & Payments step of checkout is opened--> |
57 |
| - <!--Verify Billing address is correct--> |
| 54 | + <!--Review & Payments step of checkout is opened where Correct Billing address is verified--> |
58 | 55 | <actionGroup ref="CheckShipToInformationInCheckoutActionGroup" stepKey="verifyShipToInformation">
|
59 | 56 | <argument name="customerVar" value="CustomerEntityOne" />
|
60 | 57 | <argument name="customerAddressVar" value="CustomerAddressSimple" />
|
|
65 | 62 | <reloadPage stepKey="refreshPage"/>
|
66 | 63 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
67 | 64 | <!-- Check that "Ship To" block contains correct information -->
|
68 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.firstName}}" stepKey="assertShipToFirstName" /> |
69 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.lastName}}" stepKey="assertShipToLastName" /> |
70 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.street[0]}}" stepKey="assertShipToStreet" /> |
71 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.city}}" stepKey="assertShipToCity" /> |
72 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.state}}" stepKey="assertShipToState" /> |
73 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.postcode}}" stepKey="assertShipToPostcode" /> |
74 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.telephone}}" stepKey="assertShipToTelephone" /> |
| 65 | + <actionGroup ref="GuestVerifiesTheShipToDetailsOnStorefrontCheckoutPaymentActionGroup" stepKey="assertingShipToInformationOnPaymentPage"/> |
75 | 66 | <!-- Assert Shipping Method = "Flat Rate" -->
|
76 | 67 | <waitForText userInput="Flat Rate - Fixed" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertShippingMethodAgain"/>
|
77 | 68 | <!-- click on Edit button next to "Ship To" Text -->
|
|
82 | 73 | <argument name="customerAddressVar" value="CustomerAddressSimple"/>
|
83 | 74 | </actionGroup>
|
84 | 75 | <!-- Check that "Ship To" block contains correct information -->
|
85 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="assertShipToFirstNameAgain" /> |
86 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="assertShipToLastNameAgain" /> |
87 |
| - <waitForText selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.city}}" stepKey="assertShipToCityAgain" /> |
| 76 | + <actionGroup ref="GuestVerifiesTheShipToDetailsOnStorefrontCheckoutPaymentActionGroup" stepKey="againAssertingShipToInformationOnPaymentPage"/> |
88 | 77 | <!-- Assert Shipping Method = "Free Shipping" -->
|
89 | 78 | <waitForText userInput="Free Shipping - Free" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertFreeShippingMethod"/>
|
90 | 79 | <!-- click on Edit button next to "Shipping Method" Text -->
|
|
0 commit comments