File tree Expand file tree Collapse file tree 2 files changed +37
-3
lines changed
app/code/Magento/Paypal/Test/Mftf Expand file tree Collapse file tree 2 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 11
11
<annotations >
12
12
<description >Enable Paypal Paylater Solution For Paypal Express Checkout</description >
13
13
</annotations >
14
+ <waitForElementClickable selector =" {{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey =" waitForConfigureButtonToClickable" />
14
15
<click selector =" {{PayPalExpressCheckoutConfigSection.configureBtn('us')}}" stepKey =" configureButtonClicked" />
15
16
<selectOption selector =" {{PayPalExpressCheckoutConfigSection.enablePayLater('us')}}" userInput =" Yes" stepKey =" enablepaylaterExp" />
16
17
<waitForPageLoad stepKey =" waitForAdvisePageLoad" />
17
- <click selector =" {{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey =" advertisePaylateClickedr" />
18
+ <waitForElementClickable selector =" {{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey =" waitForPayLaterDropdownClickable" />
19
+ <click selector =" {{PayPalExpressCheckoutConfigSection.payLaterConfigDropDown('us')}}" stepKey =" advertisePaylateToClicked" />
18
20
<waitForPageLoad stepKey =" waitForadvisepaylaterdropdown" />
19
- <selectOption selector =" {{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput =" Yes" stepKey =" enablepaypallater " />
20
- <waitForElementClickable selector =" {{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey =" waitForcheckoutcartpageclickable " />
21
+ <selectOption selector =" {{PayPalExpressCheckoutConfigSection.enablePayLaterIn('us')}}" userInput =" Yes" stepKey =" enablePaypalLater " />
22
+ <waitForElementClickable selector =" {{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey =" waitForCheckoutCartpageClickable " />
21
23
<click selector =" {{PayPalCheckoutCartConfigSection.expandcheckoutcartpage('us')}}" stepKey =" clickCheckoutCart" />
22
24
</actionGroup >
23
25
</actionGroups >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <suites xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Suite/etc/suiteSchema.xsd" >
9
+ <suite name =" ConfigurePaypalPaylaterSuite" >
10
+ <before >
11
+ <!-- Login -->
12
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" login" />
13
+ <actionGroup ref =" EnablePaypalPaylaterConfigurationActionGroup" stepKey =" enablePaypalPaylaterSolution" >
14
+ </actionGroup >
15
+ <!-- Check default values selected in dropdown -->
16
+ <actionGroup ref =" CheckValuesForCartConfigActionGroup" stepKey =" checkValuesForCartConfiguration" >
17
+ </actionGroup >
18
+ <!-- Click on Save configure Button -->
19
+ <actionGroup ref =" AdminSaveConfigActionGroup" stepKey =" saveAdminConfiguration" >
20
+ </actionGroup >
21
+ </before >
22
+ <after >
23
+ <!-- Cleanup Paypal configurations -->
24
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanFullPageCache" >
25
+ <argument name =" tags" value =" config full_page" />
26
+ </actionGroup >
27
+ </after >
28
+ <include >
29
+ <group name =" paypalPaylater" />
30
+ </include >
31
+ </suite >
32
+ </suites >
You can’t perform that action at this time.
0 commit comments