File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
app/code/Magento/Paypal/Test/Mftf Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 28
28
<click selector =" {{AdminConfigSection.saveButton}}" stepKey =" saveConfig" />
29
29
<waitForPageLoad stepKey =" waitForPageLoad2" />
30
30
</actionGroup >
31
- <actionGroup name =" EnablePayPalSolution" extends =" EnablePayPalConfiguration" >
32
- <remove keyForRemoval =" waitForOtherPayPalPaymentsSection" />
33
- <remove keyForRemoval =" clickOtherPayPalPaymentsSection" />
34
- <remove keyForRemoval =" seeAlertMessage" />
35
- <remove keyForRemoval =" acceptEnablePopUp" />
36
- <remove keyForRemoval =" saveConfig" />
37
- <remove keyForRemoval =" waitForPageLoad2" />
31
+ <actionGroup name =" EnablePayPalSolution" >
32
+ <annotations >
33
+ <description >Expands the 'OTHER PAYPAL PAYMENT SOLUTIONS' tab on the Admin Configuration page. Enables the provided PayPal Config type for the provided Country Code.</description >
34
+ </annotations >
35
+ <arguments >
36
+ <argument name =" payPalConfigType" />
37
+ <argument name =" countryCode" type =" string" defaultValue =" us" />
38
+ </arguments >
39
+ <waitForElementVisible selector =" {{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" stepKey =" waitForOtherPayPalPaymentsSection" />
40
+ <conditionalClick selector =" {{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" dependentSelector =" {{OtherPayPalPaymentsConfigSection.expandedTab(countryCode)}}" visible =" false" stepKey =" clickOtherPayPalPaymentsSection" />
41
+ <waitForElementVisible selector =" {{payPalConfigType.configureBtn(countryCode)}}" stepKey =" waitForWPSExpressConfigureBtn" />
42
+ <click selector =" {{payPalConfigType.configureBtn(countryCode)}}" stepKey =" clickWPSExpressConfigureBtn" />
43
+ <waitForElementVisible selector =" {{payPalConfigType.enableSolution(countryCode)}}" stepKey =" waitForWPSExpressEnable" />
44
+ <selectOption selector =" {{payPalConfigType.enableSolution(countryCode)}}" userInput =" Yes" stepKey =" enableWPSExpressSolution" />
38
45
</actionGroup >
39
46
<actionGroup name =" CheckEnableOptionPayPalConfiguration" >
40
47
<annotations >
Original file line number Diff line number Diff line change 39
39
<!-- Try to enable express checkout Solution-->
40
40
<comment userInput =" Try to enable express checkout Solution" stepKey =" commentTryEnableExpressCheckout" />
41
41
<amOnPage url =" {{AdminConfigPaymentMethodsPage.url}}" stepKey =" navigateToPaymentConfigurationPage" />
42
- <waitForPageLoad stepKey =" waitForPageLoad" />
43
- <conditionalClick selector =" {{OtherPayPalPaymentsConfigSection.expandTab('us')}}" dependentSelector =" {{OtherPayPalPaymentsConfigSection.expandedTab('us')}}" visible =" false" stepKey =" clickOtherPayPalPaymentsSection" />
44
42
<actionGroup ref =" EnablePayPalSolution" stepKey =" enableExpressCheckout" >
45
43
<argument name =" payPalConfigType" value =" WPSExpressConfigSection" />
46
44
<argument name =" countryCode" value =" us" />
You can’t perform that action at this time.
0 commit comments