|
17 | 17 | <severity value="CRITICAL"/>
|
18 | 18 | <testCaseId value="MAGETWO-93677"/>
|
19 | 19 | <group value="braintree"/>
|
20 |
| - <skip> |
21 |
| - <issueId value="MQE-1187" /> |
22 |
| - </skip> |
23 | 20 | </annotations>
|
24 | 21 |
|
| 22 | + |
25 | 23 | <before>
|
26 | 24 | <!--Login As Admin-->
|
27 | 25 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
| 26 | + |
28 | 27 | <!--CreateNewProduct-->
|
29 |
| - <actionGroup ref="CreateNewProductActionGroup" stepKey="CreateNewProduct"/> |
| 28 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 29 | + <createData entity="_defaultProduct" stepKey="createProduct"> |
| 30 | + <requiredEntity createDataKey="createCategory"/> |
| 31 | + </createData> |
| 32 | + |
30 | 33 | <!--Create New Customer-->
|
31 |
| - <actionGroup ref="CreateCustomerActionGroup" stepKey="CreateCustomer"/> |
| 34 | + <createData stepKey="createCustomer" entity="Simple_US_Customer"/> |
32 | 35 | </before>
|
33 | 36 |
|
| 37 | + |
34 | 38 | <!--Configure Braintree-->
|
35 | 39 | <actionGroup ref="ConfigureBraintree" stepKey="configureBraintree"/>
|
36 | 40 |
|
|
45 | 49 | <argument name="role" value="adminRole"/>
|
46 | 50 | </actionGroup>
|
47 | 51 |
|
48 |
| - <!--Log out--> |
49 |
| - <actionGroup ref="SignOut" stepKey="SignOut"/> |
| 52 | + <!--SignOut--> |
| 53 | + <actionGroup ref="logout" stepKey="signOutFromAdmin"/> |
| 54 | + |
50 | 55 | <!--Log in as new user-->
|
51 | 56 | <actionGroup ref="LoginAsAnyUser" stepKey="LoginActionGroup">
|
52 | 57 | <argument name="uname" value="{{newAdmin.username}}"/>
|
53 | 58 | <argument name="passwd" value="{{newAdmin.password}}"/>
|
54 | 59 | </actionGroup>
|
| 60 | + <waitForPageLoad stepKey="waitForLogin" time="3"/> |
55 | 61 |
|
56 | 62 | <!--Create New Order-->
|
57 |
| - <actionGroup ref="CreateNewOrderActionGroup" stepKey="createNewOrder"/> |
| 63 | + <actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrder"> |
| 64 | + <argument name="customer" value="Simple_US_Customer"/> |
| 65 | + </actionGroup> |
| 66 | + |
| 67 | + <actionGroup ref="addSimpleProductToOrder" stepKey="addProduct"> |
| 68 | + <argument name="product" value="_defaultProduct"/> |
| 69 | + </actionGroup> |
| 70 | + |
| 71 | + <actionGroup ref="fillOrderCustomerInformation" stepKey="fillCustomerAddress"> |
| 72 | + <argument name="customer" value="Simple_US_Customer"/> |
| 73 | + <argument name="address" value="US_Address_TX"/> |
| 74 | + </actionGroup> |
| 75 | + |
| 76 | + <actionGroup ref="orderSelectFlatRateShipping" stepKey="selectFlatRateShipping"/> |
| 77 | + |
| 78 | + <waitForPageLoad stepKey="waitForShippingToFinish"/> |
| 79 | + |
| 80 | + <actionGroup ref="useBraintreeForMasterCard" stepKey="selectCardWithBraintree"/> |
| 81 | + |
| 82 | + <click stepKey="submitOrder" selector="{{NewOrderSection.submitOrder}}"/> |
| 83 | + <waitForPageLoad stepKey="waitForSaveConfig" time="5"/> |
| 84 | + <waitForElementVisible selector="{{NewOrderSection.successMessage}}" stepKey="waitForSuccessMessage" time="1"/> |
58 | 85 |
|
59 | 86 | <after>
|
| 87 | + <!-- Disable BrainTree --> |
| 88 | + <actionGroup ref="DisableBrainTree" stepKey="disableBrainTree"/> |
| 89 | + |
60 | 90 | <!--SignOut-->
|
61 | 91 | <actionGroup ref="SignOut" stepKey="signOutFromNewUser"/>
|
62 | 92 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
63 | 93 |
|
64 | 94 | <!--Delete Product-->
|
65 |
| - <actionGroup ref="DeleteProductActionGroup" stepKey="DeleteAllProducts"> |
66 |
| - <argument name="productName" value="NewProductData.ProductName"/> |
67 |
| - </actionGroup> |
| 95 | + <deleteData stepKey="deleteProduct" createDataKey="createProduct"/> |
68 | 96 |
|
69 | 97 | <!--Delete Customer-->
|
70 |
| - <actionGroup ref="DeleteCustomerActionGroup" stepKey="DeleteCustomer"> |
71 |
| - <argument name="lastName" value="NewCustomerData.LastName"/> |
72 |
| - </actionGroup> |
| 98 | + <deleteData stepKey="deleteCustomer" createDataKey="createCustomer"/> |
73 | 99 |
|
74 | 100 | <!--Delete created user-->
|
75 |
| - <actionGroup ref="DeleteCreatedUserActionGroup" stepKey="AdminDeleteUserActionGroup"> |
| 101 | + <actionGroup ref="AdminDeleteUserActionGroup" stepKey="AdminDeleteUserActionGroup"> |
76 | 102 | <argument name="user" value="adminRole"/>
|
77 | 103 | </actionGroup>
|
| 104 | + |
78 | 105 | <!--Delete created role-->
|
79 | 106 | <actionGroup ref="AdminDeleteCreatedRoleActionGroup" stepKey="AdminDeleteRoleActionGroup">
|
80 | 107 | <argument name="role" value="adminRole"/>
|
81 | 108 | </actionGroup>
|
82 |
| - <!--Log Out--> |
83 |
| - <actionGroup ref="logout" stepKey="logOut2"/> |
84 | 109 | </after>
|
85 | 110 | </test>
|
86 | 111 | </tests>
|
0 commit comments