Skip to content

Commit 259fc6b

Browse files
MC-42612: Negative discount amount displays on order page in admin for product $0.00 price
- Remove the spaces.
1 parent 1d94842 commit 259fc6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/code/Magento/SalesRule/Test/Mftf/Test/StorefrontZeroPriceProductWithDiscountUsingCartPriceRuleTest.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@
1919
<group value="SalesRule"/>
2020
</annotations>
2121
<before>
22-
<!-- log in -->
22+
<!-- Log in -->
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
24-
<!--Create 2 simple products-->
24+
<!-- Create 2 simple products -->
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1">
2626
<field key="price">33.50</field>
2727
</createData>
2828
<createData entity="SimpleProduct2" stepKey="simpleProduct2">
2929
<field key="price">0.00</field>
3030
</createData>
31-
<!--Create the sales rule-->
31+
<!-- Create the sales rule -->
3232
<createData entity="SalesRuleSpecificCouponAndByPercent25" stepKey="createSalesRule"/>
3333
<createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule">
3434
<requiredEntity createDataKey="createSalesRule"/>
3535
</createData>
3636
</before>
3737
<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"/>
4040
<deleteData createDataKey="createSalesRule" stepKey="deleteSalesRule"/>
4141
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4242
</after>
@@ -61,7 +61,7 @@
6161
<argument name="coupon" value="$$createCouponForCartPriceRule$$"/>
6262
</actionGroup>
6363

64-
<!-- Assert Discount amount in storefront-->
64+
<!-- Assert Discount amount in storefront -->
6565
<actionGroup ref="AssertStorefrontCartDiscountActionGroup" stepKey="seeDiscountTotal">
6666
<argument name="discount" value="8.38"/>
6767
</actionGroup>
@@ -84,7 +84,7 @@
8484
<argument name="entityId" value="$grabOrderNumber"/>
8585
</actionGroup>
8686

87-
<!-- Assert Discount amount in admin-->
87+
<!-- Assert Discount amount in admin -->
8888
<see selector="{{AdminOrderItemsOrderedSection.itemDiscountAmountByProductName($simpleProduct1.name$)}}" userInput="$8.38" stepKey="seeProduct1DiscountAmount"/>
8989
<see selector="{{AdminOrderItemsOrderedSection.itemDiscountAmountByProductName($simpleProduct2.name$)}}" userInput="$0.00" stepKey="seeProduct2DiscountAmount"/>
9090
<see selector="{{AdminOrderTotalSection.discount}}" userInput="-$8.38" stepKey="seeDiscountAmount"/>

0 commit comments

Comments
 (0)