Skip to content

Commit 416e344

Browse files
committed
ACQE-6434:Default configuration for Paypal pay later
Correction On PaylaterConfigurationActionGroup and AdminConfigForPaypalPaylaterTest
1 parent c2e4ab8 commit 416e344

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010
<annotations>
1111
<description>Check the default Dropdown Values Available in Admin Cart Page.</description>
1212
</annotations>
13-
<selectOption selector ="{{PayPalCheckoutCartConfigSection.display('us')}}" userInput="Yes" stepKey="enableDisplayforPaylaterCartPage"/>
14-
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.position('us')}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
15-
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.styleLayout('us')}}" userInput="Text" stepKey="seeSelectedStyleLayout"/>
16-
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoType('us')}}" userInput="Primary" stepKey="seeSelectedLogoType"/>
17-
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoPosition('us')}}" userInput="Left" stepKey="seeSelectedLogoPosition"/>
18-
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.textColor('us')}}" userInput="Black" stepKey="seeSelectedTextColor"/>
13+
<arguments>
14+
<argument name="countryCode" type="string" defaultValue="us"/>
15+
</arguments>
16+
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage(countryCode)}}" stepKey="waitForCheckoutCartPageClickable"/>
17+
<click selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage(countryCode)}}" stepKey="clickCheckoutCart"/>
18+
<selectOption selector ="{{PayPalCheckoutCartConfigSection.display(countryCode)}}" userInput="Yes" stepKey="enableDisplayforPaylaterCartPage"/>
19+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.position(countryCode)}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
20+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.styleLayout(countryCode)}}" userInput="Text" stepKey="seeSelectedStyleLayout"/>
21+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoType(countryCode)}}" userInput="Primary" stepKey="seeSelectedLogoType"/>
22+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.logoPosition(countryCode)}}" userInput="Left" stepKey="seeSelectedLogoPosition"/>
23+
<seeOptionIsSelected selector="{{PayPalCheckoutCartConfigSection.textColor(countryCode)}}" userInput="Black" stepKey="seeSelectedTextColor"/>
1924
</actionGroup>
2025
</actionGroups>

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
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="PaylaterConfigurationActionGroup" >
9+
<actionGroup name="PaylaterConfigurationActionGroup">
1010
<annotations>
1111
<description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
1212
</annotations>
13+
<arguments>
14+
<argument name="countryCode" type="string" defaultValue="us"/>
15+
</arguments>
1316
<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+
<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"/>
1720
<waitForPageLoad stepKey="waitForAdvisePageLoad"/>
18-
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylater"/>
21+
<click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown(countryCode)}}" stepKey="advertisePaylater"/>
1922
<waitForPageLoad stepKey="waitForAdvisePaylaterDropdown"/>
20-
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput="Yes" stepKey="enablePaypalLater"/>
21-
<waitForElementClickable selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage('us')}}" stepKey="waitForCheckoutCartPageClickable"/>
22-
<click selector="{{PayPalCheckoutCartConfigSection.expandCheckoutCartPage('us')}}" stepKey="clickCheckoutCart"/>
23+
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.enablePayLaterIn(countryCode)}}" userInput="Yes" stepKey="enablePaypalLater"/>
2324
</actionGroup>
2425
</actionGroups>

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@
2727
<magentoCLI command="cache:flush" stepKey="cleanCache"/>
2828
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
2929
</after>
30-
<actionGroup ref="PaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution">
31-
</actionGroup>
30+
<actionGroup ref="PaylaterConfigurationActionGroup" stepKey="enablePaypalPaylaterSolution"/>
3231
<!--Check default values selected in dropdown -->
33-
<actionGroup ref="CheckValuesForAdminCartConfigActionGroup" stepKey="checkValuesForAdminCartConfiguration">
34-
</actionGroup>
32+
<actionGroup ref="CheckValuesForAdminCartConfigActionGroup" stepKey="checkValuesForAdminCartConfiguration"/>
3533
<!--Click on Save configure Button -->
36-
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration">
37-
</actionGroup>
34+
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveAdminConfiguration"/>
3835
</test>
3936
</tests>

0 commit comments

Comments
 (0)