|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="EditShippingAddressOnePageCheckoutTestVariation1"> |
| 12 | + <annotations> |
| 13 | + <features value="Checkout"/> |
| 14 | + <stories value="Edit Shipping Address"/> |
| 15 | + <title value="Edit Shipping Address on Checkout Page."/> |
| 16 | + <description value="Edit Shipping Address on Checkout Page."/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MAGETWO-67837"/> |
| 19 | + <group value="shoppingCart"/> |
| 20 | + <group value="mtf_migrated"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 24 | + <createData entity="simpleProductDefault" stepKey="createProduct"> |
| 25 | + <requiredEntity createDataKey="createCategory"/> |
| 26 | + </createData> |
| 27 | + <createData entity="Simple_US_Customer_NY" stepKey="createCustomer"/> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 31 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 32 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 33 | + </after> |
| 34 | + |
| 35 | + <!-- Go to Frontend as Customer --> |
| 36 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin"> |
| 37 | + <argument name="Customer" value="$$createCustomer$$" /> |
| 38 | + </actionGroup> |
| 39 | + |
| 40 | + <!-- Add product to cart --> |
| 41 | + <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="onCategoryPage"/> |
| 42 | + <actionGroup ref="StorefrontAddCategorySimpleProductToCartActionGroup" stepKey="addProductToCart"> |
| 43 | + <argument name="product" value="$$createProduct$$"/> |
| 44 | + </actionGroup> |
| 45 | + |
| 46 | + <!-- Go to checkout page --> |
| 47 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="customerGoToCheckoutFromMinicart" /> |
| 48 | + |
| 49 | + <!-- *New Address* button on 1st checkout step --> |
| 50 | + <click selector="{{CheckoutShippingSection.newAddressButton}}" stepKey="addNewAddress"/> |
| 51 | + |
| 52 | + <!--Fill in required fields and click *Save address* button--> |
| 53 | + <actionGroup ref="FillShippingAddressOneStreetActionGroup" stepKey="changeAddress"> |
| 54 | + <argument name="Address" value="UK_Not_Default_Address"/> |
| 55 | + </actionGroup> |
| 56 | + <click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveNewAddress"/> |
| 57 | + |
| 58 | + <!--Select Shipping Rate--> |
| 59 | + <scrollTo selector="{{CheckoutShippingMethodsSection.next}}" stepKey="scrollToShippingRate"/> |
| 60 | + <click selector="{{CheckoutShippingMethodsSection.shippingMethodFlatRate}}" stepKey="selectShippingMethod"/> |
| 61 | + |
| 62 | + <!-- Click *Edit* button for the new address --> |
| 63 | + <click selector="{{CheckoutShippingSection.editActiveAddress}}" stepKey="editNewAddress"/> |
| 64 | + |
| 65 | + <!--Remove values from required fields and click *Cancel* button --> |
| 66 | + <actionGroup ref="clearShippingAddressActionGroup" stepKey="clearRequiredFields"/> |
| 67 | + <click selector="{{CheckoutShippingSection.cancelChangeAddress}}" stepKey="cancelEditAddress"/> |
| 68 | + |
| 69 | + <!-- Go to *Next* --> |
| 70 | + <scrollTo selector="{{CheckoutShippingMethodsSection.next}}" stepKey="scrollToButtonNext"/> |
| 71 | + <click selector="{{CheckoutShippingMethodsSection.next}}" stepKey="goNext"/> |
| 72 | + |
| 73 | + <!-- Select payment solution --> |
| 74 | + <checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution" /> |
| 75 | + |
| 76 | + <!--Refresh Page and Place Order--> |
| 77 | + <reloadPage stepKey="reloadPage"/> |
| 78 | + <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/> |
| 79 | + </test> |
| 80 | + </tests> |
0 commit comments