Skip to content

Commit c2e4ab8

Browse files
committed
ACQE-6434:Default configuration for Paypal pay later
Correction On PaylaterConfigurationActionGroup For Code Reusuability
1 parent 866b12c commit c2e4ab8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
-->
77
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
88
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
9-
<actionGroup name="EnablePaypalPaylaterConfigurationActionGroup" >
9+
<actionGroup name="PaylaterConfigurationActionGroup" >
1010
<annotations>
1111
<description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
1212
</annotations>
13+
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
14+
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="waitForConfigureButtonClickable"/>
15+
<click selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="configureButtonClicked"/>
16+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLater('us')}}" userInput="Yes" stepKey="enablePaylaterExp"/>
17+
<waitForPageLoad stepKey="waitForAdvisePageLoad"/>
18+
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylater"/>
1319
<waitForPageLoad stepKey="waitForAdvisePaylaterDropdown"/>
1420
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablePaypalLater"/>
1521
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage('us')}}" stepKey="waitForCheckoutCartPageClickable"/>

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,10 @@
2424
</before>
2525
<after>
2626
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
27+
<magentoCLI command="cache:flush" stepKey="cleanCache"/>
2728
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
2829
</after>
29-
<!--Enable Paylater For Paypal Express Checkout -->
30-
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
31-
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="waitForConfigureButtonClickable"/>
32-
<click selector="{{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey="configureButtonClicked"/>
33-
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLater('us')}}" userInput="Yes" stepKey="enablePaylaterExp"/>
34-
<waitForPageLoad stepKey="waitForAdvisePageLoad"/>
35-
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylater"/>
36-
<actionGroup ref="EnablePaypalPaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
30+
<actionGroup ref="PaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
3731
</actionGroup>
3832
<!--Check default values selected in dropdown -->
3933
<actionGroup ref="CheckValuesForAdminCartConfigActionGroup" stepKey="checkValuesForAdminCartConfiguration">

0 commit comments

Comments
 (0)