Skip to content

Commit 0165879

Browse files
committed
ACP2E-862: Cash on Delivery method is visible even if it is not allowed for that particular country
1 parent c3780e2 commit 0165879

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<group value="checkout"/>
2121
</annotations>
2222
<before>
23-
<magentoCLI command="config:set {{DisplayBillingAddressOnPaymentMethod.path}} {{DisplayBillingAddressOnPaymentMethod.value}}" stepKey="displayBillingAddressOnPaymentMethod"/>
2423
<!--Enable Cash On Delivery payment method-->
2524
<magentoCLI command="config:set {{CashOnDeliveryEnableConfigData.path}} {{CashOnDeliveryEnableConfigData.value}}" stepKey="enableCashOnDelivery"/>
2625
<!--Allow Cash On Delivery for Specific Country-->
@@ -33,9 +32,9 @@
3332
<createData entity="Simple_US_Customer_US_UK_Addresses" stepKey="createCustomer"/>
3433
</before>
3534
<after>
35+
<!--Disable Cash On Delivery method-->
3636
<magentoCLI command="config:set payment/cashondelivery/allowspecific 0" stepKey="allowSpecificValue"/>
3737
<magentoCLI command="config:set payment/cashondelivery/specificcountry ''" stepKey="specificCountryValue"/>
38-
<!--Disable Cash On Delivery method-->
3938
<magentoCLI command="config:set {{CashOnDeliveryDisabledConfigData.path}} {{CashOnDeliveryDisabledConfigData.value}}" stepKey="disabledCashOnDelivery"/>
4039

4140
<!--Customer log out-->

0 commit comments

Comments
 (0)