Skip to content

Commit 82a18c0

Browse files
committed
Added scenarios for mftf config merchant country change
1 parent dc158fa commit 82a18c0

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminRegionalLinkWithMerchantCountryFromConfig">
12+
<annotations>
13+
<features value="Paypal"/>
14+
<stories value="PayLater Comment Regional Link With Merchant Country From Config"/>
15+
<title value="Check Comment Regional Link With Merchant Country From Config For PayPal PayLater"/>
16+
<description value="Default link country for Paypal Pay Later and for all unsupported countries is US"/>
17+
<severity value="AVERAGE"/>
18+
</annotations>
19+
<before>
20+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
21+
<magentoCLI command="config:set {{MerchantFrance.path}} {{MerchantFrance.value}}" stepKey="setMerchantCountryDefault"/>
22+
</before>
23+
<after>
24+
<magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountry4"/>
25+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
26+
</after>
27+
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
28+
<waitForPageLoad stepKey="waitForPageLoad"/>
29+
<actionGroup ref="AdminPayPalRegionalLinkOtherActionGroup" stepKey="verifyPayPalCommentCommentLink">
30+
<argument name="payPalConfigType" value="PayPalExpressCheckoutOtherCountryConfigSection"/>
31+
<argument name="enabledOption" value="Yes"/>
32+
<argument name="countryCode" value="fr"/>
33+
</actionGroup>
34+
<selectOption selector="{{PaymentsConfigSection.merchantCountry}}" userInput="United Kingdom" stepKey="setMerchantCountry2"/>
35+
<waitForPageLoad stepKey="waitForPageLoad2"/>
36+
<actionGroup ref="AdminPayPalRegionalLinkActionGroup" stepKey="verifyPayPalCommentCommentLink2">
37+
<argument name="payPalConfigType" value="PayPalExpressCheckoutConfigSection"/>
38+
<argument name="enabledOption" value="Yes"/>
39+
<argument name="countryCode" value="gb"/>
40+
</actionGroup>
41+
<selectOption selector="{{PaymentsConfigSection.merchantCountry}}" userInput="United States" stepKey="setMerchantCountry3"/>
42+
<waitForPageLoad stepKey="waitForPageLoa3"/>
43+
<actionGroup ref="AdminPayPalRegionalLinkActionGroup" stepKey="verifyPayPalCommentCommentLink3">
44+
<argument name="payPalConfigType" value="PayPalExpressCheckoutConfigSection"/>
45+
<argument name="enabledOption" value="Yes"/>
46+
<argument name="countryCode" value="us"/>
47+
</actionGroup>
48+
</test>
49+
</tests>

0 commit comments

Comments
 (0)