<?xml version="1.0" encoding="UTF-8"?>
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="WaitForPaymentElementActionGroup">
        <!-- Check for JS errors FIRST: if the Stripe renderer crashed (e.g. session
             creation failed), dontSeeJsError fails with the actual console error,
             which is far more diagnostic than a generic iframe timeout below. -->
        <dontSeeJsError stepKey="dontSeeJsError"/>
        <waitForElementVisible selector="{{StorefrontStripePaymentMethodSection.paymentElementIframe}}" stepKey="waitForPaymentElementIframe" time="60"/>
    </actionGroup>
</actionGroups>
