Skip to content

Commit a5f5a8a

Browse files
irenelagnoRrego6
authored andcommitted
MC-32679: Create automated Paypal tests
- squash test branch
1 parent 1ab2c54 commit a5f5a8a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<arguments>
1616
<argument name="elementNumber" type="string" defaultValue="0"/>
1717
</arguments>
18+
<waitForElementVisible selector="{{CheckoutPaymentSection.smartButtonPayPalFrame}}" stepKey="waitForIframeVisible"/>
1819
<!--set ID for iframe of PayPal group button-->
1920
<executeJS function="document.getElementsByClassName('component-frame')[{{elementNumber}}].setAttribute('name', 'myFrame');" stepKey="setIDForIframe"/>
2021
<!--switch to iframe of PayPal group button-->

app/code/Magento/Paypal/Test/Mftf/Section/PayPalExpressCheckoutConfigSection/CheckoutPaymentSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<element name="email" type="input" selector="#checkout-customer-email"/>
1212
<element name="payPalPaymentBraintree" type="radio" selector="#braintree_paypal"/>
1313
<element name="payPalFrame" type="iframe" selector="//iframe[contains(@class, 'zoid-component-frame zoid-visible')]" timeout="5"/>
14+
<element name="smartButtonPayPalFrame" type="iframe" selector=".component-frame" timeout="10"/>
1415
<element name="PayPalPaymentRadio" type="radio" selector="input#paypal_express.radio" timeout="30"/>
1516
<element name="PayPalBtn" type="radio" selector=".paypal-button.paypal-button-number-0" timeout="30"/>
1617
</section>

0 commit comments

Comments
 (0)