Skip to content

Commit a3441be

Browse files
MC-15140: Paypal Express Checkout - When user hits Cancel button on pop-up "There is already another PayPal solution enabled...." then "Enable this Solution" drop down still says "Yes" instead of "No"
1 parent 24bb60a commit a3441be

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,20 @@
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>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
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"/>

0 commit comments

Comments
 (0)