<?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="AssertAdminCustomerGenderOnCustomerFormActionGroup">
        <annotations>
            <description>Validates that the provided Customer Gender is selected on the Admin Customer edit page.</description>
        </annotations>
        <arguments>
            <argument name="customerGender" defaultValue="{{Gender.empty}}" type="string"/>
        </arguments>

        <conditionalClick selector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" dependentSelector="{{AdminCustomerAccountInformationSection.gender}}" visible="false" stepKey="clickOnAccountInfoTab"/>
        <waitForPageLoad stepKey="waitForPageLoad"/>
        <seeOptionIsSelected userInput="{{customerGender}}" selector="{{AdminCustomerAccountInformationSection.gender}}" stepKey="verifyNeededCustomerGenderSelected"/>
    </actionGroup>
</actionGroups>
