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 2828 <click selector =" {{AdminConfigSection.saveButton}}" stepKey =" saveConfig" />
2929 <waitForPageLoad stepKey =" waitForPageLoad2" />
3030 </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" />
3845 </actionGroup >
3946 <actionGroup name =" CheckEnableOptionPayPalConfiguration" >
4047 <annotations >
Original file line number Diff line number Diff line change 3939 <!-- Try to enable express checkout Solution-->
4040 <comment userInput =" Try to enable express checkout Solution" stepKey =" commentTryEnableExpressCheckout" />
4141 <amOnPage url =" {{AdminConfigPaymentMethodsPage.url}}" stepKey =" navigateToPaymentConfigurationPage" />
42- <waitForPageLoad stepKey =" waitForPageLoad" />
43- <conditionalClick selector =" {{OtherPayPalPaymentsConfigSection.expandTab('us')}}" dependentSelector =" {{OtherPayPalPaymentsConfigSection.expandedTab('us')}}" visible =" false" stepKey =" clickOtherPayPalPaymentsSection" />
4442 <actionGroup ref =" EnablePayPalSolution" stepKey =" enableExpressCheckout" >
4543 <argument name =" payPalConfigType" value =" WPSExpressConfigSection" />
4644 <argument name =" countryCode" value =" us" />
You can’t perform that action at this time.
0 commit comments