Skip to content

Commit afc22cc

Browse files
committed
Fixed mftf test failure
1 parent c6f2c52 commit afc22cc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
</annotations>
2121

2222
<before>
23+
<!--Enable flat rate shipping-->
24+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2325
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2426
<createData entity="_defaultProduct" stepKey="createPreReqProduct">
2527
<requiredEntity createDataKey="createPreReqCategory"/>
@@ -28,6 +30,8 @@
2830
</before>
2931

3032
<after>
33+
<!-- Disable shipping method for customer with default address -->
34+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3135
<actionGroup ref="DeleteCartPriceRuleByName" stepKey="cleanUpRule">
3236
<argument name="ruleName" value="{{SimpleSalesRule.name}}"/>
3337
</actionGroup>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
</annotations>
2121

2222
<before>
23+
<!--Enable flat rate shipping-->
24+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2325
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2426
<createData entity="_defaultProduct" stepKey="createPreReqProduct">
2527
<requiredEntity createDataKey="createPreReqCategory"/>
@@ -28,6 +30,8 @@
2830
</before>
2931

3032
<after>
33+
<!-- Disable shipping method for customer with default address -->
34+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3135
<actionGroup ref="DeleteCartPriceRuleByName" stepKey="cleanUpRule">
3236
<argument name="ruleName" value="{{SimpleSalesRule.name}}"/>
3337
</actionGroup>

0 commit comments

Comments
 (0)