Skip to content

Commit ed1a21e

Browse files
committed
add MFTF test
1 parent 6005a92 commit ed1a21e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminCreateBuyXGetYFreeWithApplyShippingAmountTest" extends="AdminCreateBuyXGetYFreeTest">
12+
<annotations>
13+
<title value="Admin should be able to create a cart price rule of type Buy X get Y free enable 'Apply to Shipping Amount' "/>
14+
<description value="Use cart price rule of type Buy X get Y free with enable 'Apply to Shipping Amount'"/>
15+
<group value="SalesRule"/>
16+
</annotations>
17+
18+
<remove keyForRemoval="verifyStorefront"/>
19+
<click selector="{{AdminCartPriceRulesFormSection.applyDiscountToShippingLabel}}" stepKey="enabledApplyDiscountToShipping" after="fillDiscountStep"/>
20+
<actionGroup ref="VerifyDiscountAmountActionGroup" stepKey="verifyStorefrontDiscount" after="fillProductFieldsInAdmin">
21+
<argument name="productUrl" value="{{_defaultProduct.urlKey}}.html"/>
22+
<argument name="quantity" value="2"/>
23+
<argument name="expectedDiscount" value="-$128.00"/>
24+
</actionGroup>
25+
</test>
26+
</tests>

0 commit comments

Comments
 (0)