Skip to content

Commit c446aa3

Browse files
kieuphan2406krissyhiserote
authored andcommitted
MC-34360: [Paypal Express Checkout] Can't place an order if the currency is euro
- Modified tests to have test coverage on global scope
1 parent 0605d53 commit c446aa3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

app/code/Magento/Paypal/Test/Mftf/Suite/InContextPaypalSuite.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
1313
<!--Config PayPal Express Checkout-->
1414
<actionGroup ref="ConfigPayPalExpressCheckoutActionGroup" stepKey="ConfigPayPalExpressCheckout"/>
15-
<!-- Configure PayPal Express Checkout -->
1615
<magentoCLI command="cache:clean" arguments="config full_page" stepKey="cleanFullPageCache"/>
1716
</before>
1817
<after>

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
</skip>
2323
</annotations>
2424
<before>
25-
25+
<!--Set price scope global-->
26+
<magentoCLI command="config:set {{CatalogPriceScopeGlobalConfigData.path}} {{CatalogPriceScopeGlobalConfigData.value}}" stepKey="setCatalogPriceScopeWebsite"/>
27+
<!--Remove Currency options for Website-->
28+
<remove keyForRemoval="setCurrencyBaseEURWebsites"/>
29+
<remove keyForRemoval="setAllowedCurrencyWebsitesForEURandUSD"/>
30+
<remove keyForRemoval="setCurrencyDefaultEURWebsites"/>
2631
<!--Enable Advanced Setting-->
2732
<magentoCLI command="config:set {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.value}}" stepKey="enableSkipOrderReview"/>
2833
<!--Set merchant country-->
@@ -31,10 +36,6 @@
3136
<magentoCLI command="config:set {{SetCurrencyAUDBaseConfig.path}} {{SetCurrencyAUDBaseConfig.value}}" stepKey="setCurrencyBaseEUR"/>
3237
<magentoCLI command="config:set {{SetAllowedCurrenciesConfigForUSD.path}} {{SetAllowedCurrenciesConfigForUSD.value}},{{SetAllowedCurrenciesConfigForAUD.value}}" stepKey="setAllowedCurrencyEURandUSD"/>
3338
<magentoCLI command="config:set {{SetDefaultCurrencyAUDConfig.path}} {{SetDefaultCurrencyAUDConfig.value}}" stepKey="setCurrencyDefaultEUR"/>
34-
<!--Set Currency options for Website-->
35-
<magentoCLI command="config:set --scope={{SetCurrencyUSDBaseConfig.scope}} --scope-code={{SetCurrencyUSDBaseConfig.scope_code}} {{SetCurrencyUSDBaseConfig.path}} {{SetCurrencyUSDBaseConfig.value}}" stepKey="setCurrencyBaseEURWebsites"/>
36-
<magentoCLI command="config:set --scope={{SetAllowedCurrenciesConfigForUSD.scope}} --scope-code={{SetAllowedCurrenciesConfigForUSD.scope_code}} {{SetAllowedCurrenciesConfigForUSD.path}} {{SetAllowedCurrenciesConfigForUSD.value}},{{SetAllowedCurrenciesConfigForAUD.value}}" stepKey="setAllowedCurrencyWebsitesForEURandUSD"/>
37-
<magentoCLI command="config:set --scope={{SetDefaultCurrencyAUDConfig.scope}} --scope-code={{SetDefaultCurrencyAUDConfig.scope_code}} {{SetDefaultCurrencyAUDConfig.path}} {{SetDefaultCurrencyAUDConfig.value}}" stepKey="setCurrencyDefaultEURWebsites"/>
3839
</before>
3940
<after>
4041
<magentoCLI command="config:set {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.value}}" stepKey="disableSkipOrderReview"/>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
</skip>
2323
</annotations>
2424
<before>
25+
<!--Set price scope global-->
26+
<magentoCLI command="config:set {{CatalogPriceScopeGlobalConfigData.path}} {{CatalogPriceScopeGlobalConfigData.value}}" stepKey="setCatalogPriceScopeWebsite"/>
27+
<!--Remove Currency options for Website-->
28+
<remove keyForRemoval="setCurrencyBaseEURWebsites"/>
29+
<remove keyForRemoval="setAllowedCurrencyWebsitesForEURandUSD"/>
30+
<remove keyForRemoval="setCurrencyDefaultEURWebsites"/>
2531
<!--Set merchant country-->
2632
<magentoCLI command="config:set {{MerchantUnitedKingdom.path}} {{MerchantUnitedKingdom.value}}" stepKey="setMerchantCountryUK"/>
2733
<!--Enable Advanced Setting-->

0 commit comments

Comments
 (0)