Skip to content

Commit c6f2c52

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCashOnDeliveryPaymentForSpecificCountryTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<group value="checkout"/>
2121
</annotations>
2222
<before>
23+
<!--Enable flat rate shipping-->
24+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2325
<!--Enable Cash On Delivery payment method-->
2426
<actionGroup ref="CashOnDeliverySpecificCountryActionGroup" stepKey="enableCashOnDelivery">
2527
<argument name="path" value="{{CashOnDeliveryEnableConfigData.path}}"/>
@@ -34,6 +36,8 @@
3436
<createData entity="Simple_US_Customer_US_UK_Addresses" stepKey="createCustomer"/>
3537
</before>
3638
<after>
39+
<!-- Disable shipping method for customer with default address -->
40+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3741
<!--Disable Cash On Delivery method-->
3842
<actionGroup ref="CashOnDeliverySpecificCountryActionGroup" stepKey="disableCashOnDelivery"/>
3943
<!--Customer log out-->

0 commit comments

Comments
 (0)