<?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="ClickPayActionGroup">
        <annotations>
            <description>Clicks on the 'Pay' or 'Subscribe' button at the Stripe Checkout page and waits for the order success page.</description>
        </annotations>

        <waitForElement selector="{{StorefrontStripeCheckoutSection.payButton}}" stepKey="waitForPaymentButton" />
        <click selector="{{StorefrontStripeCheckoutSection.payButton}}" stepKey="clickPayButton"/>
        <waitForElement selector="{{CheckoutSuccessMainSection.success}}" time="60" stepKey="waitForOrderSuccessPage" />
        <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
    </actionGroup>
</actionGroups>
