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-customer/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-customer/Test/Mftf/Test/PasswordAutocompleteOffTest.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="PasswordAutocompleteOffTest">
        <annotations>
            <features value="Customer"/>
            <stories value="Customer Password Autocomplete"/>
            <title value="[Security] Autocomplete attribute with off value is added to password input"/>
            <description value="[Security] Autocomplete attribute with off value is added to password input"/>
            <testCaseId value="MC-13678"/>
            <severity value="CRITICAL"/>
            <group value="customers"/>
            <group value="mtf_migrated"/>
        </annotations>
        <before>
            <!-- Configure Magento via CLI: disable_guest_checkout -->
            <magentoCLI command="config:set checkout/options/guest_checkout 0" stepKey="disableGuestCheckout"/>

            <!-- Configure Magento via CLI: password_autocomplete_off-->
            <magentoCLI command="config:set customer/password/autocomplete_on_storefront 0" stepKey="turnPasswordAutocompleteOff"/>

            <!-- Create a simple product -->
            <createData entity="SimpleSubCategory" stepKey="category"/>
            <createData entity="SimpleProduct" stepKey="product">
                <requiredEntity createDataKey="category"/>
            </createData>
        </before>
        <after>
            <!-- Set Magento configuration back to default values -->
            <magentoCLI command="config:set checkout/options/guest_checkout 1" stepKey="disableGuestCheckoutRollback"/>
            <magentoCLI command="config:set customer/password/autocomplete_on_storefront 1" stepKey="turnPasswordAutocompleteOffRollback"/>

            <!-- Delete the simple product created in the before block -->
            <deleteData createDataKey="product" stepKey="deleteProduct"/>
            <deleteData createDataKey="category" stepKey="deleteCategory"/>
        </after>

        <!-- Go to the created product page and add it to the cart-->
        <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="cartAddSimpleProductToCart">
            <argument name="product" value="$$product$$"/>
        </actionGroup>

        <!--Click Sign in - on the top right of the page -->
        <actionGroup ref="StorefrontClickSignInButtonActionGroup" stepKey="storeFrontClickSignInButton"/>

        <!--Verify if the password field on store front sign-in page has the autocomplete attribute set to off -->
        <actionGroup ref="AssertStorefrontPasswordAutoCompleteOffActionGroup" stepKey="assertStorefrontPasswordAutoCompleteOff"/>

        <!--Proceed to checkout-->
        <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>

        <!--Verify if the password field on the authorization popup has the autocomplete attribute set to off -->
        <actionGroup ref="AssertAuthorizationPopUpPasswordAutoCompleteOffActionGroup" stepKey="assertAuthorizationPopUpPasswordAutoCompleteOff"/>
    </test>
</tests>

Spamworldpro Mini