<?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="AssertCustomerResetPasswordActionGroup">
        <annotations>
            <description>Validates that the provided URL is present and correct. Validates that the provided Message/Message Type is present and correct.</description>
        </annotations>
        <arguments>
            <argument name="url" type="string"/>
            <argument name="message" type="string" defaultValue=""/>
            <argument name="messageType" type="string" defaultValue="success"/>
        </arguments>

        <waitForElementVisible selector="{{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}" stepKey="waitForMessage"/>
        <see stepKey="seeMessage" userInput="{{message}}" selector="{{StorefrontCustomerLoginMessagesSection.messageByType(messageType)}}"/>
        <seeInCurrentUrl stepKey="seeCorrectCurrentUrl" url="{{url}}"/>
    </actionGroup>
</actionGroups>
