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

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="StorefrontAccountPasswordFieldsNotAvailableTest">
        <annotations>
            <features value="Security"/>
            <stories value="Password Fields not Available on Frontend Until Checkbox Change Password Unchecked"/>
            <title value="Password Fields not Available"/>
            <description value="User Cannot Change Password Until Checkbox Change Password Unchecked"/>
            <testCaseId value="MC-14369"/>
            <severity value="CRITICAL"/>
            <group value="security"/>
            <group value="mtf_migrated"/>
        </annotations>

        <before>
            <createData entity="Simple_US_Customer" stepKey="customer"/>
        </before>
        <after>
            <deleteData createDataKey="customer" stepKey="deleteCustomer"/>
        </after>

        <!-- TEST BODY -->
        <!-- Go to storefront home page -->
        <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>
        <!-- Login as created customer -->
        <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
            <argument name="Customer" value="$$customer$$"/>
        </actionGroup>
        <!-- Navigate to "Change Account Information" tab -->
        <actionGroup ref="StorefrontNavigateToAccountInformationChangeActionGroup" stepKey="goToCustomerEditPage"/>
        <!-- Assert Account Password Fields not Available -->
        <actionGroup ref="AssertStorefrontAccountPasswordFieldsNotAvailableActionGroup" stepKey="uncheckedCheckbox"/>
        <!-- END TEST BODY -->

    </test>
</tests>
