|
16 | 16 | <severity value="MAJOR"/>
|
17 | 17 | <testCaseId value="MC-22625"/>
|
18 | 18 | <useCaseId value="MC-21926"/>
|
19 |
| - <group value="Checkout"/> |
20 |
| - <skip> |
21 |
| - <issueId value="MC-29597"/> |
22 |
| - </skip> |
| 19 | + <group value="checkout"/> |
23 | 20 | </annotations>
|
24 | 21 |
|
25 | 22 | <before>
|
26 | 23 | <!-- Enable Free Shipping Method and set Minimum Order Amount to 100-->
|
27 | 24 | <magentoCLI command="config:set {{AdminFreeshippingActiveConfigData.path}} {{AdminFreeshippingActiveConfigData.enabled}}" stepKey="enableFreeShippingMethod" />
|
28 | 25 | <magentoCLI command="config:set {{AdminFreeshippingMinimumOrderAmountConfigData.path}} {{AdminFreeshippingMinimumOrderAmountConfigData.hundred}}" stepKey="setFreeShippingMethodMinimumOrderAmountToBe100" />
|
29 | 26 |
|
| 27 | + <!--Set Fedex configs data--> |
| 28 | + <magentoCLI command="config:set {{AdminFedexEnableForCheckoutConfigData.path}} {{AdminFedexEnableForCheckoutConfigData.value}}" stepKey="enableCheckout"/> |
| 29 | + <magentoCLI command="config:set {{AdminFedexEnableSandboxModeConfigData.path}} {{AdminFedexEnableSandboxModeConfigData.value}}" stepKey="enableSandbox"/> |
| 30 | + <magentoCLI command="config:set {{AdminFedexEnableDebugConfigData.path}} {{AdminFedexEnableDebugConfigData.value}}" stepKey="enableDebug"/> |
| 31 | + <magentoCLI command="config:set {{AdminFedexEnableShowMethodConfigData.path}} {{AdminFedexEnableShowMethodConfigData.value}}" stepKey="enableShowMethod"/> |
| 32 | + |
30 | 33 | <!--Set StoreInformation configs data-->
|
31 |
| - <magentoCLI command="config:set {{AdminGeneralSetStoreNameConfigData.path}} '{{AdminGeneralSetStoreNameConfigData.value}}'" stepKey="setStoreInformationName"/> |
32 |
| - <magentoCLI command="config:set {{AdminGeneralSetStorePhoneConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.telephone}}" stepKey="setStoreInformationPhone"/> |
33 |
| - <magentoCLI command="config:set {{AdminGeneralSetCountryConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.country_id}}" stepKey="setStoreInformationCountry"/> |
34 |
| - <magentoCLI command="config:set {{AdminGeneralSetCityConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.city}}" stepKey="setStoreInformationCity"/> |
35 |
| - <magentoCLI command="config:set {{AdminGeneralSetPostcodeConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.postcode}}" stepKey="setStoreInformationPostcode"/> |
36 |
| - <magentoCLI command="config:set {{AdminGeneralSetStreetAddressConfigData.path}} '{{DE_Address_Berlin_Not_Default_Address.street[0]}}'" stepKey="setStoreInformationStreetAddress"/> |
37 |
| - <magentoCLI command="config:set {{AdminGeneralSetStreetAddress2ConfigData.path}} '{{US_Address_California.street[0]}}'" stepKey="setStoreInformationStreetAddress2"/> |
38 |
| - <magentoCLI command="config:set {{AdminGeneralSetVatNumberConfigData.path}} {{AdminGeneralSetVatNumberConfigData.value}}" stepKey="setStoreInformationVatNumber"/> |
| 34 | + <actionGroup ref="AdminSetStoreInformationConfigurationActionGroup" stepKey="setStoreInformationConfigData"> |
| 35 | + <argument name="telephone" value="{{DE_Address_Berlin_Not_Default_Address.telephone}}"/> |
| 36 | + <argument name="country" value="{{DE_Address_Berlin_Not_Default_Address.country_id}}"/> |
| 37 | + <argument name="state" value="{{DE_Address_Berlin_Not_Default_Address.state}}"/> |
| 38 | + <argument name="city" value="{{DE_Address_Berlin_Not_Default_Address.city}}"/> |
| 39 | + <argument name="postcode" value="{{DE_Address_Berlin_Not_Default_Address.postcode}}"/> |
| 40 | + <argument name="street" value="{{DE_Address_Berlin_Not_Default_Address.street[0]}}"/> |
| 41 | + </actionGroup> |
39 | 42 |
|
40 | 43 | <!--Set Shipping settings origin data-->
|
41 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginCountryConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.country_id}}" stepKey="setOriginCountry"/> |
42 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginCityConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.city}}" stepKey="setOriginCity"/> |
43 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginZipCodeConfigData.path}} {{DE_Address_Berlin_Not_Default_Address.postcode}}" stepKey="setOriginZipCode"/> |
44 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginStreetAddressConfigData.path}} '{{DE_Address_Berlin_Not_Default_Address.street[0]}}'" stepKey="setOriginStreetAddress"/> |
45 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginStreetAddress2ConfigData.path}} '{{US_Address_California.street[0]}}'" stepKey="setOriginStreetAddress2"/> |
| 44 | + <actionGroup ref="AdminSetShippingOriginConfigurationActionGroup" stepKey="setShippingOriginConfigurationData"> |
| 45 | + <argument name="address" value="DE_Address_Berlin_Not_Default_Address"/> |
| 46 | + </actionGroup> |
46 | 47 |
|
47 | 48 | <!-- Create Simple Product -->
|
48 | 49 | <createData entity="defaultSimpleProduct" stepKey="createSimpleProduct">
|
|
56 | 57 | </createData>
|
57 | 58 | <!-- Create Customer with filled Shipping & Billing Address -->
|
58 | 59 | <createData entity="CustomerEntityOne" stepKey="createCustomer"/>
|
59 |
| - |
60 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
61 |
| - <magentoCLI command="cache:flush" stepKey="flushCache"/> |
62 | 60 | </before>
|
63 | 61 |
|
64 | 62 | <after>
|
|
69 | 67 | <magentoCLI command="config:set {{AdminFreeshippingMinimumOrderAmountConfigData.path}} {{AdminFreeshippingMinimumOrderAmountConfigData.default}}" stepKey="setFreeShippingMethodMinimumOrderAmountAsDefault" />
|
70 | 68 | <magentoCLI command="config:set {{AdminFreeshippingActiveConfigData.path}} {{AdminFreeshippingActiveConfigData.disabled}}" stepKey="disableFreeShippingMethod" />
|
71 | 69 | <!--Reset configs-->
|
72 |
| - <magentoCLI command="config:set {{AdminGeneralSetStoreNameConfigData.path}} ''" stepKey="setStoreInformationName"/> |
73 |
| - <magentoCLI command="config:set {{AdminGeneralSetStorePhoneConfigData.path}} ''" stepKey="setStoreInformationPhone"/> |
74 |
| - <magentoCLI command="config:set {{AdminGeneralSetCityConfigData.path}} ''" stepKey="setStoreInformationCity"/> |
75 |
| - <magentoCLI command="config:set {{AdminGeneralSetPostcodeConfigData.path}} ''" stepKey="setStoreInformationPostcode"/> |
76 |
| - <magentoCLI command="config:set {{AdminGeneralSetStreetAddressConfigData.path}} ''" stepKey="setStoreInformationStreetAddress"/> |
77 |
| - <magentoCLI command="config:set {{AdminGeneralSetStreetAddress2ConfigData.path}} ''" stepKey="setStoreInformationStreetAddress2"/> |
78 |
| - <magentoCLI command="config:set {{AdminGeneralSetVatNumberConfigData.path}} ''" stepKey="setStoreInformationVatNumber"/> |
79 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginCityConfigData.path}} ''" stepKey="setOriginCity"/> |
80 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginZipCodeConfigData.path}} ''" stepKey="setOriginZipCode"/> |
81 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginStreetAddressConfigData.path}} ''" stepKey="setOriginStreetAddress"/> |
82 |
| - <magentoCLI command="config:set {{AdminShippingSettingsOriginStreetAddress2ConfigData.path}} ''" stepKey="setOriginStreetAddress2"/> |
83 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
84 |
| - <magentoCLI command="cache:flush" stepKey="flushCache"/> |
| 70 | + <magentoCLI command="config:set {{AdminFedexDisableForCheckoutConfigData.path}} {{AdminFedexDisableForCheckoutConfigData.value}}" stepKey="disableCheckout"/> |
| 71 | + <magentoCLI command="config:set {{AdminFedexDisableSandboxModeConfigData.path}} {{AdminFedexDisableSandboxModeConfigData.value}}" stepKey="disableSandbox"/> |
| 72 | + <magentoCLI command="config:set {{AdminFedexDisableDebugConfigData.path}} {{AdminFedexDisableDebugConfigData.value}}" stepKey="disableDebug"/> |
| 73 | + <magentoCLI command="config:set {{AdminFedexDisableShowMethodConfigData.path}} {{AdminFedexDisableShowMethodConfigData.value}}" stepKey="disableShowMethod"/> |
| 74 | + <actionGroup ref="AdminResetShippingOriginConfigurationActionGroup" stepKey="resetShippingOriginConfig"/> |
| 75 | + <actionGroup ref="AdminSetStoreInformationConfigurationActionGroup" stepKey="resetStoreInformationConfig"> |
| 76 | + <argument name="storeName" value=""/> |
| 77 | + <argument name="storeHoursOfOperation" value=""/> |
| 78 | + <argument name="vatNumber" value=""/> |
| 79 | + <argument name="telephone" value=""/> |
| 80 | + <argument name="country" value=""/> |
| 81 | + <argument name="state" value=""/> |
| 82 | + <argument name="city" value=""/> |
| 83 | + <argument name="postcode" value=""/> |
| 84 | + <argument name="street" value=""/> |
| 85 | + </actionGroup> |
| 86 | + <actionGroup ref="logout" stepKey="logoutFromAdmin"/> |
85 | 87 | </after>
|
86 | 88 |
|
87 | 89 | <!-- Guest Customer Test Scenario -->
|
|
105 | 107 | </actionGroup>
|
106 | 108 |
|
107 | 109 | <!-- Go to Order review -->
|
108 |
| - <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="goToCheckoutReview"/> |
| 110 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutReview"/> |
109 | 111 |
|
110 | 112 | <!-- Checkout select Check/Money Order payment -->
|
111 | 113 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment"/>
|
|
122 | 124 | <actionGroup ref="AssertStorefrontNotCalculatedValueInShippingTotalInOrderSummaryActionGroup" stepKey="assertNotYetCalculated"/>
|
123 | 125 |
|
124 | 126 | <!-- Assert order cannot be placed and error message will shown. -->
|
125 |
| - <actionGroup ref="AssertStorefrontOrderCannotBePlacedActionGroup" stepKey="assertOrderCannotBePlaced"> |
| 127 | + <actionGroup ref="AssertStorefrontOrderIsNotPlacedActionGroup" stepKey="assertOrderCannotBePlaced"> |
126 | 128 | <argument name="error" value="The shipping method is missing. Select the shipping method and try again."/>
|
127 | 129 | </actionGroup>
|
128 | 130 |
|
|
135 | 137 | </actionGroup>
|
136 | 138 |
|
137 | 139 | <!-- Go to Order review -->
|
138 |
| - <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="goToCheckoutReview2"/> |
| 140 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutOrderReview"/> |
139 | 141 |
|
140 | 142 | <!-- Place order assert succeed -->
|
141 | 143 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
|
|
147 | 149 | </actionGroup>
|
148 | 150 |
|
149 | 151 | <!-- Add Simple Product to Cart -->
|
150 |
| - <actionGroup ref="StorefrontAddSimpleProductToShoppingCartActionGroup" stepKey="addProductToCart2"> |
| 152 | + <actionGroup ref="StorefrontAddSimpleProductToShoppingCartActionGroup" stepKey="addSimpleProductToCart"> |
151 | 153 | <argument name="product" value="$$createSimpleProduct$$"/>
|
152 | 154 | </actionGroup>
|
153 | 155 |
|
154 | 156 | <!-- Go to Checkout -->
|
155 |
| - <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckout2"/> |
156 |
| - |
| 157 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="proceedToCheckout"/> |
157 | 158 | <!-- Select Free Shipping -->
|
158 |
| - <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodFreeShipping2"> |
| 159 | + <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFreeShippingMethod"> |
159 | 160 | <argument name="shippingMethodName" value="Free Shipping"/>
|
160 | 161 | </actionGroup>
|
161 | 162 |
|
162 | 163 | <!-- Go to Order review -->
|
163 |
| - <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="goToCheckoutReview3"/> |
| 164 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/> |
164 | 165 |
|
165 | 166 | <!-- Checkout select Check/Money Order payment -->
|
166 |
| - <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPayment2"/> |
| 167 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyPaymentMethod"/> |
167 | 168 |
|
168 | 169 | <!-- Select payment solution -->
|
169 |
| - <checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution2" /> |
170 |
| - <waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButton2"/> |
| 170 | + <checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="checkBillingAddressNotSameCheckbox"/> |
| 171 | + <waitForElementVisible selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButtonVisible"/> |
171 | 172 |
|
172 | 173 | <!-- Apply Discount Coupon to the Order -->
|
173 |
| - <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyDiscountCoupon2"> |
| 174 | + <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyDiscountCouponCode"> |
174 | 175 | <argument name="discountCode" value="$createCartPriceRuleCoupon.code$"/>
|
175 | 176 | </actionGroup>
|
176 | 177 |
|
177 | 178 | <!-- Assert Shipping total is not yet calculated -->
|
178 |
| - <actionGroup ref="AssertStorefrontNotCalculatedValueInShippingTotalInOrderSummaryActionGroup" stepKey="assertNotYetCalculated2"/> |
| 179 | + <actionGroup ref="AssertStorefrontNotCalculatedValueInShippingTotalInOrderSummaryActionGroup" stepKey="assertShippingTotalNotYetCalculated"/> |
179 | 180 |
|
180 |
| - <!-- Assert order cannot be placed and error message will shown. --> |
181 |
| - <actionGroup ref="AssertStorefrontOrderCannotBePlacedActionGroup" stepKey="assertOrderCannotBePlaced2"> |
| 181 | + <!-- Assert order cannot be placed and error message will shown. --> |
| 182 | + <actionGroup ref="AssertStorefrontOrderIsNotPlacedActionGroup" stepKey="assertOrderIsNotPlaced"> |
182 | 183 | <argument name="error" value="The shipping method is missing. Select the shipping method and try again."/>
|
183 | 184 | </actionGroup>
|
184 | 185 |
|
185 | 186 | <!-- Go to checkout page -->
|
186 |
| - <actionGroup ref="OpenStoreFrontCheckoutShippingPageActionGroup" stepKey="openCheckoutShippingPage2"/> |
| 187 | + <actionGroup ref="OpenStoreFrontCheckoutShippingPageActionGroup" stepKey="goToCheckoutShippingPage"/> |
187 | 188 |
|
188 | 189 | <!-- Chose flat rate -->
|
189 |
| - <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodFlatRate2"> |
| 190 | + <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"> |
190 | 191 | <argument name="shippingMethodName" value="Flat Rate"/>
|
191 | 192 | </actionGroup>
|
192 | 193 |
|
193 | 194 | <!-- Go to Order review -->
|
194 |
| - <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="goToCheckoutReview4"/> |
| 195 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentStep"/> |
195 | 196 |
|
196 | 197 | <!-- Place order assert succeed -->
|
197 |
| - <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder2"/> |
| 198 | + <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/> |
198 | 199 | </test>
|
199 | 200 | </tests>
|
0 commit comments