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