|
19 | 19 | <group value="SalesRule"/> |
20 | 20 | </annotations> |
21 | 21 | <before> |
22 | | - <!-- log in --> |
| 22 | + <!-- Log in --> |
23 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
24 | | - <!--Create 2 simple products--> |
| 24 | + <!-- Create 2 simple products --> |
25 | 25 | <createData entity="SimpleProduct2" stepKey="simpleProduct1"> |
26 | 26 | <field key="price">33.50</field> |
27 | 27 | </createData> |
28 | 28 | <createData entity="SimpleProduct2" stepKey="simpleProduct2"> |
29 | 29 | <field key="price">0.00</field> |
30 | 30 | </createData> |
31 | | - <!--Create the sales rule--> |
| 31 | + <!-- Create the sales rule --> |
32 | 32 | <createData entity="SalesRuleSpecificCouponAndByPercent25" stepKey="createSalesRule"/> |
33 | 33 | <createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule"> |
34 | 34 | <requiredEntity createDataKey="createSalesRule"/> |
35 | 35 | </createData> |
36 | 36 | </before> |
37 | 37 | <after> |
38 | | - <deleteData createDataKey="simpleProduct1" stepKey="DeleteSimpleProduct1" /> |
39 | | - <deleteData createDataKey="simpleProduct2" stepKey="DeleteSimpleProduct2" /> |
| 38 | + <deleteData createDataKey="simpleProduct1" stepKey="DeleteSimpleProduct1"/> |
| 39 | + <deleteData createDataKey="simpleProduct2" stepKey="DeleteSimpleProduct2"/> |
40 | 40 | <deleteData createDataKey="createSalesRule" stepKey="deleteSalesRule"/> |
41 | 41 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
42 | 42 | </after> |
|
61 | 61 | <argument name="coupon" value="$$createCouponForCartPriceRule$$"/> |
62 | 62 | </actionGroup> |
63 | 63 |
|
64 | | - <!-- Assert Discount amount in storefront--> |
| 64 | + <!-- Assert Discount amount in storefront --> |
65 | 65 | <actionGroup ref="AssertStorefrontCartDiscountActionGroup" stepKey="seeDiscountTotal"> |
66 | 66 | <argument name="discount" value="8.38"/> |
67 | 67 | </actionGroup> |
|
84 | 84 | <argument name="entityId" value="$grabOrderNumber"/> |
85 | 85 | </actionGroup> |
86 | 86 |
|
87 | | - <!-- Assert Discount amount in admin--> |
| 87 | + <!-- Assert Discount amount in admin --> |
88 | 88 | <see selector="{{AdminOrderItemsOrderedSection.itemDiscountAmountByProductName($simpleProduct1.name$)}}" userInput="$8.38" stepKey="seeProduct1DiscountAmount"/> |
89 | 89 | <see selector="{{AdminOrderItemsOrderedSection.itemDiscountAmountByProductName($simpleProduct2.name$)}}" userInput="$0.00" stepKey="seeProduct2DiscountAmount"/> |
90 | 90 | <see selector="{{AdminOrderTotalSection.discount}}" userInput="-$8.38" stepKey="seeDiscountAmount"/> |
|
0 commit comments