|
18 | 18 | <testCaseId value="AC-4628"/>
|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 |
| - <!-- Enable Flat Rate --> |
22 |
| - <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
23 | 21 | <!-- Enable free shipping -->
|
24 | 22 | <createData entity="FreeShippingMethodsSettingConfig" stepKey="freeShippingMethodsSettingConfig"/>
|
25 | 23 | <!-- create category -->
|
|
35 | 33 | <!-- delete simple product -->
|
36 | 34 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
37 | 35 | </after>
|
38 |
| - |
39 | 36 | <!-- Step 1: Go to Storefront as Guest -->
|
40 | 37 | <!-- Step 2: Add simple product to shopping cart -->
|
41 | 38 | <amOnPage url="{{StorefrontProductPage.url($createProduct.custom_attributes[url_key]$)}}" stepKey="amOnSimpleProductPage"/>
|
|
49 | 46 | <waitForPageLoad stepKey="waitForTheFormIsOpened"/>
|
50 | 47 | <!-- verify shipping screen is opened -->
|
51 | 48 | <seeElement selector="{{CheckoutShippingSection.isShippingStep}}" stepKey="shippingStepIsOpened"/>
|
52 |
| - |
53 | 49 | <!--Fill Shipping Form-->
|
54 | 50 | <!--Filling shipping information and click next-->
|
55 | 51 | <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping">
|
56 | 52 | <argument name="shippingMethod" value="Flat Rate"/>
|
57 | 53 | </actionGroup>
|
58 |
| - |
59 | 54 | <!--Review & Payments step of checkout is opened-->
|
60 | 55 | <!--Verify Billing address is correct-->
|
61 | 56 | <actionGroup ref="CheckShipToInformationInCheckoutActionGroup" stepKey="checkoutCheckShipToInformation">
|
62 | 57 | <argument name="customerVar" value="CustomerEntityOne" />
|
63 | 58 | <argument name="customerAddressVar" value="CustomerAddressSimple" />
|
64 | 59 | </actionGroup>
|
65 |
| - |
66 | 60 | <!-- Assert Shipping Method = "Flat Rate" -->
|
67 | 61 | <see userInput="Flat Rate - Fixed" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertShippingMethod"/>
|
68 |
| - |
69 | 62 | <!-- Reload Page and wait for page to get reload -->
|
70 | 63 | <reloadPage stepKey="refreshPage"/>
|
71 | 64 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
72 |
| - |
73 | 65 | <!-- Check that "Ship To" block contains correct information -->
|
74 | 66 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.firstName}}" stepKey="seeShipToFirstName" />
|
75 | 67 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.lastName}}" stepKey="seeShipToLastName" />
|
|
78 | 70 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.state}}" stepKey="seeShipToState" />
|
79 | 71 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.postcode}}" stepKey="seeShipToPostcode" />
|
80 | 72 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.telephone}}" stepKey="seeShipToTelephone" />
|
81 |
| - |
82 | 73 | <!-- Assert Shipping Method = "Flat Rate" -->
|
83 | 74 | <see userInput="Flat Rate - Fixed" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertShippingMethodAgain"/>
|
84 |
| - |
85 | 75 | <!-- click on Edit button next to "Ship To" Text -->
|
86 | 76 | <click selector="{{CheckoutPaymentSection.editShipToInformation}}" stepKey="clickOnEditButton"/>
|
87 |
| - |
88 | 77 | <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSectionAgain">
|
89 | 78 | <argument name="customerVar" value="CustomerEntityOne"/>
|
90 | 79 | <argument name="customerAddressVar" value="CustomerAddressSimple"/>
|
91 | 80 | </actionGroup>
|
92 |
| - |
93 | 81 | <!-- Check that "Ship To" block contains correct information -->
|
94 | 82 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="seeShipToFirstNameAgain" />
|
95 | 83 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="seeShipToLastNameAgain" />
|
96 | 84 | <see selector="{{CheckoutPaymentSection.shipToInformation}}" userInput="{{CustomerAddressSimple.city}}" stepKey="seeShipToCityAgain" />
|
97 |
| - |
98 | 85 | <!-- Assert Shipping Method = "Free Shipping" -->
|
99 | 86 | <see userInput="Free Shipping - Free" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertFreeShippingMethod"/>
|
100 | 87 | <!-- click on Edit button next to "Shipping Method" Text -->
|
101 | 88 | <click selector="{{CheckoutPaymentSection.editShipMethodInformation}}" stepKey="clickOnEditShippingMethodButton"/>
|
102 |
| - |
103 | 89 | <!-- Assert that it has scrolled to Shipping Method text -->
|
104 | 90 | <scrollTo selector="{{CheckoutPaymentSection.shippingMethodTitle}}}" stepKey="scrollToShippingMethodTitle"/>
|
105 | 91 | <see selector="{{CheckoutPaymentSection.shippingMethodTitle}}" userInput="Shipping Methods" stepKey="seeShippingMethodTitle"/>
|
106 |
| - |
107 | 92 | </test>
|
108 | 93 | </tests>
|
0 commit comments