Skip to content

Commit 18859f7

Browse files
Merge branch 'ACQE-6562' into ACQE-6650_mainline_PR_deployment
2 parents 72a02eb + 0c77ed5 commit 18859f7

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!--
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
9+
<actionGroup name="AdminConfigurePaypalPaylaterEnableActionGroup">
10+
<annotations>
11+
<description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
12+
</annotations>
13+
<arguments>
14+
<argument name="countryCode" type="string" defaultValue="us"/>
15+
</arguments>
16+
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
17+
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.configureBtn(countryCode)}}" stepKey="waitForConfigureButtonClickable"/>
18+
<click selector="{{PayPalExpressCheckoutConfigSection.configureBtn(countryCode)}}" stepKey="configureButtonClicked"/>
19+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLater(countryCode)}}" userInput="Yes" stepKey="enablePaylaterExp"/>
20+
<waitForPageLoad stepKey="waitForAdvisePageLoad"/>
21+
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown(countryCode)}}" stepKey="advertisePaylater"/>
22+
<waitForPageLoad stepKey="waitForAdvisePaylaterDropdown"/>
23+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn(countryCode)}}" userInput="Yes" stepKey="enablePaypalLater"/>
24+
</actionGroup>
25+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
9+
<actionGroup name="AssertAdminConfigForDefaultValuesInPaylaterProductPageActionGroup">
10+
<annotations>
11+
<description>Check the default Dropdown Values Available in Admin Cart Page.</description>
12+
</annotations>
13+
<arguments>
14+
<argument name="countryCode" type="string" defaultValue="us"/>
15+
</arguments>
16+
<waitForElementClickable selector="{{AdminPaypalProductPageConfigSection.expandCatalogProductPage(countryCode)}}" stepKey="waitForCheckoutCartPageClickable"/>
17+
<click selector="{{AdminPaypalProductPageConfigSection.expandCatalogProductPage(countryCode)}}" stepKey="clickCheckoutCart"/>
18+
<selectOption selector ="{{AdminPaypalProductPageConfigSection.display(countryCode)}}" userInput="Yes" stepKey="enableDisplayforPaylaterCartPage"/>
19+
<selectOption selector="{{AdminPaypalProductPageConfigSection.position(countryCode)}}" userInput="Header (center)" stepKey="selectDefaultPosition"/>
20+
<!--Verify Default Option was Selected correctly-->
21+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.position(countryCode)}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
22+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.styleLayout(countryCode)}}" userInput="Text" stepKey="seeSelectedStyleLayout"/>
23+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.logoType(countryCode)}}" userInput="Primary" stepKey="seeSelectedLogoType"/>
24+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.logoPosition(countryCode)}}" userInput="Left" stepKey="seeSelectedLogoPosition"/>
25+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.textColor(countryCode)}}" userInput="Black" stepKey="seeSelectedTextColor"/>
26+
<seeOptionIsSelected selector="{{AdminPaypalProductPageConfigSection.textSize(countryCode)}}" userInput="12px" stepKey="seeSelectedTextSize"/>
27+
</actionGroup>
28+
</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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
10+
<section name="AdminPaypalProductPageConfigSection">
11+
<element name="expandCatalogProductPage" type="button" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage-head" parameterized="true"/>
12+
<element name="display" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_display" parameterized="true"/>
13+
<element name="position" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_position" parameterized="true"/>
14+
<element name="styleLayout" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_stylelayout" parameterized="true" />
15+
<element name="logoType" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_logotype" parameterized="true" />
16+
<element name="logoPosition" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_logoposition" parameterized="true" />
17+
<element name="textColor" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_textcolor" parameterized="true" />
18+
<element name="textSize" type="input" selector="#payment_{{countryCode}}_paypal_alternative_payment_methods_express_checkout_us_express_checkout_required_advertise_paylater_settings_paylater_productpage_paylater_productpage_textsize" parameterized="true" />
19+
</section>
20+
</sections>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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="AdminConfigForPaylaterProductPageTest">
11+
<annotations>
12+
<features value="PayPal"/>
13+
<stories value="Payment methods"/>
14+
<title value="Default configuration for Paypal Pay Later Message on Product Page"/>
15+
<description value="Paypal Pay Later Message should display on Catalog Product Page configuration"/>
16+
<severity value="CRITICAL"/>
17+
<testCaseId value="AC-5602"/>
18+
<group value="3rd_party_integration"/>
19+
<group value="pr_exclude"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
<actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="configPayPalExpress">
24+
<argument name="credentials" value="SamplePaypalExpressConfig2"/>
25+
</actionGroup>
26+
</before>
27+
<after>
28+
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
29+
<magentoCLI command="cache:flush" stepKey="cleanCache"/>
30+
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
31+
</after>
32+
<!--Enable Pay Later in Admin Product Page -->
33+
<actionGroup ref="AdminConfigurePaypalPaylaterEnableActionGroup" stepKey="enablePaypalPaylaterSolution"/>
34+
<!--Check default values selected in dropdown -->
35+
<actionGroup ref="AssertAdminConfigForDefaultValuesInPaylaterProductPageActionGroup" stepKey="verifyDefaultValuesFromDropDown"/>
36+
<!--Click on Save configure Button -->
37+
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration"/>
38+
</test>
39+
</tests>

0 commit comments

Comments
 (0)