Skip to content

Commit 49c01f1

Browse files
authored
ACQE-6361 | [AC-3995] Customer is notified if address is invalid for PayPal through Checkout flow
1 parent 43f1205 commit 49c01f1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontClickPayPalButtonActionGroup" extends="SwitchToPayPalGroupBtnActionGroup">
12+
<annotations>
13+
<description>Click PayPal button</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="selector" type="string"/>
17+
</arguments>
18+
<waitForElementVisible selector="{{selector}}" stepKey="waitForIframeVisible" before="setIDForIframe"/>
19+
<executeJS function="jQuery('{{selector}}').attr('name', 'myFrame');" stepKey="setIDForIframe"/>
20+
<switchToIFrame userInput="myFrame" stepKey="switchToIframe"/>
21+
<waitForElementVisible selector="{{CheckoutPaymentSection.PayPalBtn}}" stepKey="waitForPayPalBtn"/>
22+
<click selector="{{CheckoutPaymentSection.PayPalBtn}}" stepKey="clickPayPalBtn"/>
23+
</actionGroup>
24+
</actionGroups>

0 commit comments

Comments
 (0)