|
13 | 13 | <title value="Verify UK customer checkout with different billing and shipping address and register customer after checkout"/>
|
14 | 14 | <description value="Checkout as UK customer with different shipping/billing address and register checkout method"/>
|
15 | 15 | <severity value="CRITICAL"/>
|
16 |
| - <testCaseId value="MC-14712"/> |
| 16 | + <testCaseId value="MC-28288"/> |
17 | 17 | <group value="mtf_migrated"/>
|
| 18 | + <group value="checkout"/> |
18 | 19 | </annotations>
|
19 | 20 |
|
20 | 21 | <before>
|
|
25 | 26 | </before>
|
26 | 27 | <after>
|
27 | 28 | <!-- Sign out Customer from storefront -->
|
28 |
| - <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openHomePage"/> |
29 |
| - <actionGroup ref="StorefrontSignOutActionGroup" stepKey="customerLogout"/> |
| 29 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> |
30 | 30 | <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
|
31 |
| - <actionGroup ref="AdminDeleteCustomerInGridActionGroup" stepKey="deleteCustomer"> |
| 31 | + <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer"> |
32 | 32 | <argument name="customerEmail" value="UKCustomer.email"/>
|
33 | 33 | </actionGroup>
|
34 |
| - <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 34 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearCustomersGridFilter"/> |
| 35 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
35 | 36 | </after>
|
36 | 37 |
|
37 | 38 | <!--Open Product page in StoreFront and assert product and price range -->
|
38 | 39 | <actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="openProductPageAndVerifyProduct">
|
39 |
| - <argument name="product" value="$$simpleProduct$$"/> |
| 40 | + <argument name="product" value="$simpleProduct$"/> |
40 | 41 | </actionGroup>
|
41 | 42 |
|
42 | 43 | <!--Add product to the cart -->
|
43 |
| - <actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addSimpleProductToCart"> |
44 |
| - <argument name="productQty" value="1"/> |
| 44 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart"> |
| 45 | + <argument name="product" value="$simpleProduct$"/> |
45 | 46 | </actionGroup>
|
46 | 47 |
|
47 | 48 | <!--Open View and edit -->
|
48 | 49 | <actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="openCartFromMiniCart"/>
|
49 | 50 |
|
50 | 51 | <!-- Fill the Estimate Shipping and Tax section -->
|
51 |
| - <actionGroup ref="CartFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields"/> |
| 52 | + <actionGroup ref="CheckoutFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields"/> |
52 | 53 | <click selector="{{CheckoutCartSummarySection.proceedToCheckout}}" stepKey="goToCheckout"/>
|
53 | 54 | <waitForPageLoad stepKey="waitForPageToLoad"/>
|
54 | 55 |
|
|
57 | 58 | <argument name="customer" value="UKCustomer"/>
|
58 | 59 | <argument name="customerAddress" value="updateCustomerUKAddress"/>
|
59 | 60 | </actionGroup>
|
60 |
| - <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="goToBillingStep"/> |
| 61 | + <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/> |
| 62 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToBillingStep"/> |
61 | 63 | <waitForElementVisible selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="waitForSameBillingAndShippingAddressCheckboxVisible"/>
|
62 | 64 | <uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="uncheckSameBillingAndShippingAddress"/>
|
63 | 65 | <conditionalClick selector="{{CheckoutShippingSection.editAddressButton}}" dependentSelector="{{CheckoutShippingSection.editAddressButton}}" visible="true" stepKey="clickEditBillingAddressButton"/>
|
64 |
| - <waitForLoadingMaskToDisappear stepKey="waitForBillingAddressFormLoad"/> |
65 | 66 |
|
66 | 67 | <!-- Fill Billing Address -->
|
67 | 68 | <actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddressForm"/>
|
|
75 | 76 | <!-- Register customer after checkout -->
|
76 | 77 | <actionGroup ref="StorefrontRegisterCustomerAfterCheckoutActionGroup" stepKey="registerCustomer"/>
|
77 | 78 |
|
78 |
| - <!-- Open Order Index Page --> |
79 |
| - <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrdersGrid"/> |
80 |
| - |
81 |
| - <!-- Filter Order using orderId and assert order--> |
82 |
| - <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById"> |
83 |
| - <argument name="orderId" value="$orderId"/> |
| 79 | + <!-- Open Order Page in admin --> |
| 80 | + <actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder"> |
| 81 | + <argument name="orderId" value="{$orderId}"/> |
84 | 82 | </actionGroup>
|
85 | 83 |
|
86 |
| - <click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="openOrderPage"/> |
87 |
| - <waitForPageLoad stepKey="waitForOrderPageToLoad"/> |
88 |
| - |
89 | 84 | <!-- Assert Grand Total -->
|
90 | 85 | <see selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$55.00" stepKey="seeGrandTotal"/>
|
91 | 86 | <see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeOrderStatus"/>
|
92 | 87 |
|
93 | 88 | <!-- Ship the order and assert the status -->
|
94 |
| - <actionGroup ref="AdminShipThePendingOrderActionGroup" stepKey="shipTheOrder"/> |
| 89 | + <actionGroup ref="GoToShipmentIntoOrderActionGroup" stepKey="goToShipment"/> |
| 90 | + <actionGroup ref="SubmitShipmentIntoOrderActionGroup" stepKey="submitShipment"/> |
95 | 91 |
|
96 | 92 | <!-- Assert order buttons -->
|
97 | 93 | <actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>
|
|
0 commit comments