Skip to content

Commit 395396a

Browse files
committed
ACQE-6491:Default configuration for Paypal Pay Later Message on Checkout Page
1 parent 995a05c commit 395396a

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!--
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="CheckValuesForCartConfigActionGroup" >
11+
<annotations>
12+
<description>Check the default Dropdown Values Available in Checkout Cart Page.</description>
13+
</annotations>
14+
<selectOption selector ="{{PayPalCheckoutCartConfigSection.display('us')}}" userInput="Yes" stepKey="enableDisplayforPaylaterCartpage"/>
15+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.position('us')}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
16+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.stylelayout('us')}}" userInput="Text" stepKey="seeSelectedStylelayout"/>
17+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logotype('us')}}" userInput="Primary" stepKey="seeSelectedlogotype"/>
18+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoposition('us')}}" userInput="Left" stepKey="seeSelectedlogoposition"/>
19+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.textcolor('us')}}" userInput="Black" stepKey="seeSelectedtextcolor"/>
20+
</actionGroup>
21+
</actionGroups>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!--
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="EnablePaypalPaylaterConfigurationActionGroup" >
11+
<annotations>
12+
<description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
13+
</annotations>
14+
<waitForPageLoad stepKey="waitForadvisepaylaterdropdown"/>
15+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablepaypallater"/>
16+
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="waitForcheckoutcartpageclickable"/>
17+
<click selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="clickCheckoutCart"/>
18+
</actionGroup>
19+
</actionGroups>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="PayPalCheckoutCartConfigSection">
12+
<element name="expandcheckoutcartpage" type="button" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage-head" parameterized="true"/>
13+
<element name="display" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_display" parameterized="true"/>
14+
<element name="position" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_position" parameterized="true"/>
15+
<element name="stylelayout" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_stylelayout" parameterized="true" />
16+
<element name="logotype" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_logotype" parameterized="true" />
17+
<element name="logoposition" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_logoposition" parameterized="true" />
18+
<element name="textcolor" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_{{countryCode}}_express_checkout_required_advertise_paylater_settings_paylater_cartpage_paylater_cartpage_textcolor" parameterized="true" />
19+
</section>
20+
</sections>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="EnablePaypalPaylaterPaypalExpressCheckoutConfigTest">
11+
<annotations>
12+
<features value="PayPal"/>
13+
<stories value="Payment methods"/>
14+
<title value="configuration for paypal pay later on checkout page"/>
15+
<description value="Paypal Pay Later Message should display on Admin Checkout Cart Page configuration"/>
16+
<severity value="CRITICAL"/>
17+
<testCaseId value="AC-5667"/>
18+
</annotations>
19+
<before>
20+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
21+
</before>
22+
<after>
23+
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
24+
</after>
25+
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
26+
<!--Enable Paypal Express Checkout Paylater Solution -->
27+
<actionGroup ref="EnablePaypalPaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
28+
</actionGroup>
29+
<!--Check default values selected in dropdown -->
30+
<actionGroup ref="CheckValuesForCartConfigActionGroup" stepKey="checkValuesForCartConfiguration">
31+
</actionGroup>
32+
<!--Click on Save configure Button -->
33+
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration">
34+
</actionGroup>
35+
<!-- Reindex and cache flush -->
36+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexPage">
37+
<argument name="indices" value=""/>
38+
</actionGroup>
39+
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCachePage">
40+
<argument name="tags" value=""/>
41+
</actionGroup>
42+
</test>
43+
</tests>

0 commit comments

Comments
 (0)