Skip to content

Commit a1f2067

Browse files
committed
AC-6080: Fixed the MFTF test fail
1 parent dc38d9d commit a1f2067

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/CheckoutAgreements/Test/Mftf/Test/AdminCreateEnabledTextTermOnMultishippingEntityTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<group value="mtf_migrated"/>
2121
</annotations>
2222
<before>
23+
<!--Enable flat rate shipping-->
24+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2325
<magentoCLI command="config:set checkout/options/enable_agreements 1" stepKey="setEnableTermsOnCheckout"/>
2426

2527
<createData entity="Simple_US_Customer_Multiple_Addresses" stepKey="createdCustomer"/>
@@ -30,6 +32,8 @@
3032
<actionGroup ref="AdminLoginActionGroup" stepKey="adminLogin"/>
3133
</before>
3234
<after>
35+
<!-- Disable shipping method for customer with default address -->
36+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3337
<magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/>
3438

3539
<deleteData createDataKey="createdCustomer" stepKey="deletedCustomer"/>

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

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

2121
<before>
22+
<!--Enable flat rate shipping-->
23+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2224
<!-- Create Simple Product -->
2325
<createData entity="defaultSimpleProduct" stepKey="createSimpleProduct"/>
2426
<!-- Create Cart Price Rule without discount but with free shipping -->
@@ -35,6 +37,8 @@
3537
</before>
3638

3739
<after>
40+
<!-- Disable shipping method for customer with default address -->
41+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3842
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutFromStorefront"/>
3943
<deleteData createDataKey="createCartPriceRule" stepKey="deleteSalesRule"/>
4044
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>

0 commit comments

Comments
 (0)