Skip to content

Commit 1e11a16

Browse files
kieuphan2406krissyhiserote
authored andcommitted
MC-34360: [Paypal Express Checkout] Can't place an order if the currency is euro
- Update test to switch to different currency on Storefront
1 parent 12ce929 commit 1e11a16

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/code/Magento/Paypal/Test/Mftf/Test/StorefrontPaypalSmartButtonInCheckoutPageTest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="MC-13690"/>
1919
<group value="paypalExpress"/>
20-
<skip>
21-
<issueId value="MC-33951"/>
22-
</skip>
2320
</annotations>
2421
<before>
2522
<!-- Login -->

app/code/Magento/Paypal/Test/Mftf/Test/StorefrontPaypalSmartButtonWithFranceMerchantCountryTest.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,28 @@
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-33274"/>
1919
<group value="paypalExpress"/>
20-
<skip>
21-
<issueId value="MC-33951"/>
22-
</skip>
2320
</annotations>
2421
<before>
22+
<!--Set price scope global-->
23+
<magentoCLI command="config:set {{CatalogPriceScopeGlobalConfigData.path}} {{CatalogPriceScopeGlobalConfigData.value}}" stepKey="setCatalogPriceScopeWebsite"/>
2524
<!--Set merchant country-->
2625
<magentoCLI command="config:set {{MerchantFrance.path}} {{MerchantFrance.value}}" stepKey="setMerchantCountryUK"/>
2726
<!--Enable Advanced Setting-->
2827
<magentoCLI command="config:set {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.value}}" stepKey="enableSkipOrderReview"/>
2928
<createData entity="FreeShippinMethodConfig" stepKey="enableFreeShipping"/>
29+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
3030
</before>
3131
<after>
3232
<magentoCLI command="config:set {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.value}}" stepKey="disableSkipOrderReview"/>
3333
<!--Set default merchant country-->
3434
<magentoCLI command="config:set {{MerchantUnitedStates.path}} {{MerchantUnitedStates.value}}" stepKey="setMerchantCountryDefault"/>
3535
<createData entity="FreeShippinMethodDefault" stepKey="disableFreeShippingMethod"/>
3636
</after>
37+
<!-- Switch to USD-US Dollar-->
38+
<actionGroup ref="StorefrontSwitchCurrencyActionGroup" after="waitForProductPagePageLoad" stepKey="switchCurrency">
39+
<argument name="currency" value="USD"/>
40+
</actionGroup>
41+
3742
<!-- click on PayPal payment radio button -->
3843
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" after="guestCheckoutFillingShippingSection" stepKey="waitForPlaceOrderButton"/>
3944
<click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="guestSelectCheckMoneyOrderPayment"/>

0 commit comments

Comments
 (0)