|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="IdentityOfDefaultBillingAndShippingAddressTest">
|
12 | 12 | <annotations>
|
13 |
| - <features value="Customer"/> |
| 13 | + <features value="Checkout"/> |
14 | 14 | <stories value="Customer checkout"/>
|
15 | 15 | <title value="Checking assignment of default billing address after placing an order"/>
|
16 | 16 | <description value="In 'Address book' field 'Default Billing Address' should be the same as 'Default Shipping Address'"/>
|
17 | 17 | <severity value="MAJOR"/>
|
| 18 | + <testCaseId value="MAGETWO-94108"/> |
| 19 | + <useCaseId value="MAGETWO-62891"/> |
18 | 20 | <group value="checkout"/>
|
19 |
| - <testCaseId value="MAGETWO-62891"/> |
| 21 | + <group value="customer"/> |
20 | 22 | </annotations>
|
21 | 23 |
|
22 | 24 | <before>
|
|
25 | 27 | </before>
|
26 | 28 |
|
27 | 29 | <!-- Go to Storefront Homepage -->
|
28 |
| - <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="GoToStorefrontHomepage"/> |
| 30 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontHomepage"/> |
29 | 31 |
|
30 | 32 | <!-- Fill out form for a new user with address -->
|
31 | 33 | <actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
|
|
40 | 42 |
|
41 | 43 | <!-- Add product to cart -->
|
42 | 44 | <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductPage">
|
43 |
| - <argument name="productUrlKey" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 45 | + <argument name="productUrlKey" value="$createProduct.custom_attributes[url_key]$"/> |
44 | 46 | </actionGroup>
|
45 | 47 | <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart">
|
46 |
| - <argument name="product" value="$$createProduct$$"/> |
| 48 | + <argument name="product" value="$createProduct$"/> |
47 | 49 | <argument name="productCount" value="1"/>
|
48 | 50 | </actionGroup>
|
49 | 51 |
|
|
58 | 60 |
|
59 | 61 | <!-- Fill Cart data -->
|
60 | 62 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrderPayment" />
|
61 |
| - <click selector="{{StorefrontCheckoutPaymentMethodSection.billingAddressSameAsShipping}}" stepKey="checkBillingAddressSameAsShippingCheckbox"/> |
| 63 | + <checkOption selector="{{StorefrontCheckoutPaymentMethodSection.billingAddressSameAsShipping}}" stepKey="checkBillingAddressSameAsShippingCheckbox"/> |
62 | 64 |
|
| 65 | + <!-- Place Order --> |
63 | 66 | <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="placeorder">
|
64 | 67 | <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage" />
|
65 | 68 | <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" />
|
66 | 69 | </actionGroup>
|
| 70 | + |
67 | 71 | <!-- Go To My Account Page -->
|
68 | 72 | <actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="goToMyAccountPage" />
|
69 | 73 |
|
70 | 74 | <!-- Assert That Shipping And Billing Address are the same -->
|
71 | 75 | <actionGroup ref="AssertThatShippingAndBillingAddressTheSame" stepKey="assertThatShippingAndBillingAddressTheSame"/>
|
72 |
| - <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> |
73 | 76 |
|
74 | 77 | <after>
|
| 78 | + <!-- Logout Customer --> |
| 79 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> |
| 80 | + |
75 | 81 | <!-- Delete created Product -->
|
76 | 82 | <deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
|
77 | 83 |
|
|
80 | 86 | <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomerFromAdmin">
|
81 | 87 | <argument name="customerEmail" value="Simple_US_Customer_NY.email"/>
|
82 | 88 | </actionGroup>
|
83 |
| - <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/> |
| 89 | + <actionGroup ref="AdminClearCustomersFiltersActionGroup" stepKey="clearCustomersGridFilter"/> |
84 | 90 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
85 | 91 | </after>
|
86 | 92 | </test>
|
|
0 commit comments