|
6 | 6 | -->
|
7 | 7 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
8 | 8 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
|
9 |
| - <actionGroup name="PaylaterConfigurationActionGroup" > |
| 9 | + <actionGroup name="PaylaterConfigurationActionGroup"> |
10 | 10 | <annotations>
|
11 | 11 | <description>Enable Paypal Paylater Solution For Paypal Express Checkout</description>
|
12 | 12 | </annotations>
|
| 13 | + <arguments> |
| 14 | + <argument name="countryCode" type="string" defaultValue="us"/> |
| 15 | + </arguments> |
13 | 16 | <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"/> |
17 | 20 | <waitForPageLoad stepKey="waitForAdvisePageLoad"/>
|
18 |
| - <click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey="advertisePaylater"/> |
| 21 | + <click selector="{{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown(countryCode)}}" stepKey="advertisePaylater"/> |
19 | 22 | <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"/> |
23 | 24 | </actionGroup>
|
24 | 25 | </actionGroups>
|
0 commit comments