<?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="SetCustomerDataLifetimeActionGroup">
        <annotations>
            <description>Goes to the Customer Configuration page. Fills Customer Data Lifetime. Clicks on Save. Validates that the Success message is present.</description>
        </annotations>
        <arguments>
            <argument name="minutes" defaultValue="60" type="string"/>
        </arguments>

        <!-- PLEASE NOTE: The below action contains a URI anchor link. It is NOT passing in a Selector. -->
        <amOnPage url="{{AdminCustomerConfigPage.url('#customer_online_customers-link')}}" stepKey="openCustomerConfigPage"/>

        <fillField userInput="{{minutes}}" selector="{{AdminCustomerConfigSection.customerDataLifetime}}" stepKey="fillCustomerDataLifetime"/>
        <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSave"/>
        <seeElement selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessage"/>
    </actionGroup>
</actionGroups>
