Skip to content

Commit 925270c

Browse files
committed
ACQE-6491:Default configuration for Paypal pay later On Admin Cart Page
Correction of ConfigurePaypalPaylaterSuite
1 parent a4b3b52 commit 925270c

File tree

5 files changed

+20
-75
lines changed

5 files changed

+20
-75
lines changed

app/code/Magento/Paypal/Test/Mftf/ActionGroup/CheckValuesForCartConfigActionGroup.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/code/Magento/Paypal/Test/Mftf/ActionGroup/EnablePaypalPaylaterConfigurationActionGroup.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylateToClicked"/>
2020
<waitForPageLoad stepKey="waitForadvisepaylaterdropdown"/>
2121
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablePaypalLater"/>
22-
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="waitForCheckoutCartpageClickable"/>
23-
<click selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="clickCheckoutCart"/>
22+
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage('us')}}" stepKey="waitForCheckoutCartpageClickable"/>
23+
<click selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage('us')}}" stepKey="clickCheckoutCart"/>
24+
<selectOption selector ="{{PayPalCheckoutCartConfigSection.display('us')}}" userInput="Yes" stepKey="enableDisplayforPaylaterCartpage"/>
25+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.position('us')}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
26+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.styleLayout('us')}}" userInput="Text" stepKey="seeSelectedStyleLayout"/>
27+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoType('us')}}" userInput="Primary" stepKey="seeSelectedLogoType"/>
28+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoPosition('us')}}" userInput="Left" stepKey="seeSelectedLogoPosition"/>
29+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.textColor('us')}}" userInput="Black" stepKey="seeSelectedTextColor"/>
2430
</actionGroup>
2531
</actionGroups>

app/code/Magento/Paypal/Test/Mftf/Section/PayPalCheckoutCartConfigSection.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<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"/>
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"/>
1313
<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"/>
1414
<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" />
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" />
1919
</section>
2020
</sections>

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@
1010
<before>
1111
<!-- Login -->
1212
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
13-
<actionGroup ref="EnablePaypalPaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
13+
<actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="ConfigPayPalExpress">
14+
<argument name="credentials" value="SamplePaypalExpressConfig2"/>
1415
</actionGroup>
15-
<!--Check default values selected in dropdown -->
16-
<actionGroup ref="CheckValuesForCartConfigActionGroup" stepKey="checkValuesForCartConfiguration">
16+
<!--Enable Paylater Solution On Admin Cart Page -->
17+
<actionGroup ref="EnablePaypalPaylaterConfigurationActionGroup" stepKey="enablePaylaterOnAdminCartConfiguration">
1718
</actionGroup>
1819
<!--Click on Save configure Button -->
1920
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration">
2021
</actionGroup>
2122
</before>
2223
<after>
2324
<!-- Cleanup Paypal configurations -->
25+
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
26+
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
2427
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanFullPageCache">
2528
<argument name="tags" value="config full_page"/>
2629
</actionGroup>
2730
</after>
2831
<include>
29-
<group name="paypalPaylater"/>
32+
<group name="paypalPayLater"/>
3033
</include>
3134
</suite>
3235
</suites>

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

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)