Skip to content

Commit a4b3b52

Browse files
committed
ACQE-6491:configuration for paypal pay later on checkout page
Correction on waitForElementClickable In EnablePaypalPaylaterConfigurationActionGroup
1 parent 86f1d7f commit a4b3b52

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
<annotations>
1212
<description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
1313
</annotations>
14+
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="waitForConfigureButtonToClickable"/>
1415
<click selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="configureButtonClicked"/>
1516
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLater('us')}}" userInput="Yes" stepKey="enablepaylaterExp"/>
1617
<waitForPageLoad stepKey="waitForAdvisePageLoad"/>
17-
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylateClickedr"/>
18+
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="waitForPayLaterDropdownClickable"/>
19+
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylateToClicked"/>
1820
<waitForPageLoad stepKey="waitForadvisepaylaterdropdown"/>
19-
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablepaypallater"/>
20-
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="waitForcheckoutcartpageclickable"/>
21+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablePaypalLater"/>
22+
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="waitForCheckoutCartpageClickable"/>
2123
<click selector="{{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey="clickCheckoutCart"/>
2224
</actionGroup>
2325
</actionGroups>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
9+
<suite name="ConfigurePaypalPaylaterSuite">
10+
<before>
11+
<!-- Login -->
12+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
13+
<actionGroup ref="EnablePaypalPaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
14+
</actionGroup>
15+
<!--Check default values selected in dropdown -->
16+
<actionGroup ref="CheckValuesForCartConfigActionGroup" stepKey="checkValuesForCartConfiguration">
17+
</actionGroup>
18+
<!--Click on Save configure Button -->
19+
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration">
20+
</actionGroup>
21+
</before>
22+
<after>
23+
<!-- Cleanup Paypal configurations -->
24+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanFullPageCache">
25+
<argument name="tags" value="config full_page"/>
26+
</actionGroup>
27+
</after>
28+
<include>
29+
<group name="paypalPaylater"/>
30+
</include>
31+
</suite>
32+
</suites>

0 commit comments

Comments
 (0)