|
11 | 11 | <test name="IdentityOfDefaultBillingAndShippingAddressTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Customer"/>
|
14 |
| - <title value="Checking assignment of default billing address after placing an orde"/> |
| 14 | + <stories value="Customer checkout"/> |
| 15 | + <title value="Checking assignment of default billing address after placing an order"/> |
15 | 16 | <description value="In 'Address book' field 'Default Billing Address' should be the same as 'Default Shipping Address'"/>
|
16 | 17 | <severity value="MAJOR"/>
|
17 |
| - <testCaseId value="MAGETWO-94108"/> |
18 |
| - <stories value="MAGETWO-62891: New address is not marked as 'Default Billing'"/> |
19 |
| - <group value="customer"/> |
| 18 | + <group value="checkout"/> |
| 19 | + <testCaseId value="MAGETWO-62891"/> |
20 | 20 | </annotations>
|
21 | 21 |
|
22 | 22 | <before>
|
23 |
| - <!--Create product--> |
| 23 | + <!-- Create product --> |
24 | 24 | <createData entity="SimpleProduct2" stepKey="createProduct"/>
|
25 | 25 | </before>
|
26 | 26 |
|
27 |
| - <!--Go to Storefront--> |
28 |
| - <amOnPage url="" stepKey="DoToStorefront"/> |
| 27 | + <!-- Go to Storefront Homepage --> |
| 28 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="GoToStorefrontHomepage"/> |
29 | 29 |
|
30 | 30 | <!-- Fill out form for a new user with address -->
|
31 | 31 | <actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
|
|
47 | 47 | <argument name="productCount" value="1"/>
|
48 | 48 | </actionGroup>
|
49 | 49 |
|
50 |
| - <!--Proceed to shipment--> |
51 |
| - <amOnPage url="{{CheckoutPage.url}}/" stepKey="goToCheckout"/> |
52 |
| - <waitForPageLoad stepKey="waitForShippingSection"/> |
| 50 | + <!-- Proceed to Checkout --> |
| 51 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutPage" /> |
53 | 52 |
|
54 |
| - <!--Fill shipment form--> |
| 53 | + <!-- Fill Shipment form --> |
55 | 54 | <actionGroup ref="LoggedInUserCheckoutFillingShippingSectionActionGroup" stepKey="checkoutFillingShippingSection" >
|
56 | 55 | <argument name="customerVar" value="Simple_US_Customer_NY" />
|
57 | 56 | <argument name="customerAddressVar" value="US_Address_NY" />
|
58 | 57 | </actionGroup>
|
59 | 58 |
|
60 |
| - <!--Fill cart data--> |
| 59 | + <!-- Fill Cart data --> |
61 | 60 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrderPayment" />
|
62 | 61 | <click selector="{{StorefrontCheckoutPaymentMethodSection.billingAddressSameAsShipping}}" stepKey="checkBillingAddressSameAsShippingCheckbox"/>
|
63 | 62 |
|
64 | 63 | <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="placeorder">
|
65 | 64 | <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage" />
|
66 | 65 | <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" />
|
67 | 66 | </actionGroup>
|
68 |
| - <!--Go To My Account--> |
69 |
| - <amOnPage stepKey="goToMyAccountPage" url="/customer/account/"/> |
| 67 | + <!-- Go To My Account Page --> |
| 68 | + <actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="goToMyAccountPage" /> |
70 | 69 |
|
71 |
| - <!--Assert That Shipping And Billing Address are the same--> |
| 70 | + <!-- Assert That Shipping And Billing Address are the same --> |
72 | 71 | <actionGroup ref="AssertThatShippingAndBillingAddressTheSame" stepKey="assertThatShippingAndBillingAddressTheSame"/>
|
| 72 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> |
73 | 73 |
|
74 | 74 | <after>
|
75 |
| - <!--Delete created Product--> |
| 75 | + <!-- Delete created Product --> |
76 | 76 | <deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
|
| 77 | + |
| 78 | + <!-- Delete Customer --> |
| 79 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 80 | + <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomerFromAdmin"> |
| 81 | + <argument name="customerEmail" value="Simple_US_Customer_NY.email"/> |
| 82 | + </actionGroup> |
| 83 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/> |
| 84 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
77 | 85 | </after>
|
78 | 86 | </test>
|
79 | 87 | </tests>
|
0 commit comments