<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="ClickPlaceOrderAuthenticationRequiredActionGroup">
        <annotations>
            <description>Clicks on the 'Place Order' button. Waits for the 3D Secure modal to open.</description>
        </annotations>

        <waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButton"/>
        <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
        <!-- We don't want to wait for a page load because a spinner is running behind the 3DS modal -->
        <wait time="10" stepKey="waitForAuthenticationRequiredModal"/>
    </actionGroup>
</actionGroups>
