Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-backend/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-backend/Test/Mftf/Test/AdminPasswordResetSettingsTest.xml
<?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="AdminPasswordResetSettingsTest">
        <annotations>
            <features value="Backend"/>
            <stories value="[SPM-2] Password Reset settings (for Admin)"/>
            <title value="[SPM-2] Password Reset settings (for Admin)"/>
            <description value="Password Reset settings for Admin"/>
            <severity value="MINOR"/>
            <testCaseId value="MC-27441"/>
            <group value="Admin_UI"/>
        </annotations>

        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
        </before>

        <after>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!-- Goto Configurable>Advance>Admin and expand security Tab -->
        <amOnPage url="{{AdminConfigAdvancedAdmin.url}}" stepKey="navigateToConfigurationPage"/>
        <waitForPageLoad stepKey="wait1"/>
        <conditionalClick stepKey="expandSecurityTab" selector="{{AdminSection.SecurityTab}}" dependentSelector="{{AdminSection.CheckIfTabExpand}}" visible="true"/>

        <!-- Uncheck system value and enter the number for password reset limitation -->
        <actionGroup ref="AdminUncheckUseSystemValueActionGroup" stepKey="uncheckUseSystemValue">
            <argument name="rowId" value="row_admin_security_max_number_password_reset_requests"/>
        </actionGroup>
       <waitForPageLoad stepKey="waitForPageLoad"/>
        <fillField selector="{{AdminSection.passwordLimitation}}" userInput="1" stepKey="fillNumbersForPasswordLimitation"/>
        <waitForPageLoad stepKey="waitForPageLoad1"/>

        <!-- check system value after entering the password reset limitation and save the configuration-->
        <actionGroup ref="AdminCheckUseSystemValueActionGroup" stepKey="checkUseSystemValue">
            <argument name="rowId" value="row_admin_security_max_number_password_reset_requests"/>
        </actionGroup>
        <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/>
        <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="assertSaveCookieLifetimeSuccessMessage">
            <argument name="message" value="You saved the configuration."/>
            <argument name="messageType" value="success"/>
        </actionGroup>

        <!--Collabase Security Tab and log out -->
        <click selector="{{AdminSection.SecurityTab}}" stepKey="minimiseSecurityTab"/>

        <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

        <!-- login with wrong password and verify the error message first time1-->
        <amOnPage url="{{AdminLoginPage.url}}" stepKey="navigateToAdmin"/>
        <fillField selector="{{AdminLoginFormSection.username}}" userInput="admin" stepKey="fillUsername"/>
        <fillField selector="{{AdminLoginFormSection.password}}" userInput="Admin@1234" stepKey="fillPassword"/>
        <click selector="{{AdminLoginFormSection.signIn}}" stepKey="clickLogin"/>
        <actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="verifyErrorMessage"/>

        <!-- login with wrong password and verify the error message first time2-->
        <amOnPage url="{{AdminLoginPage.url}}" stepKey="navigateToAdmin1"/>
        <fillField selector="{{AdminLoginFormSection.username}}" userInput="admin" stepKey="fillUsername1"/>
        <fillField selector="{{AdminLoginFormSection.password}}" userInput="Admin@1" stepKey="fillPassword1"/>
        <click selector="{{AdminLoginFormSection.signIn}}" stepKey="clickLogin1"/>
        <actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="verifyErrorMessage1"/>

        <!-- login with valid credentials-->
        <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin1"/>

    </test>
</tests>

Spamworldpro Mini