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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-cookie/Test/Mftf/Test/StorefrontVerifyUnsecureCookieTest.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="StorefrontVerifyUnsecureCookieTest">
        <annotations>
            <features value="Cookie"/>
            <stories value="Storefront Secure Cookie"/>
            <title value="Verify Storefront Cookie Secure Config over http"/>
            <description value="Verify that cookie are not secure on storefront over http"/>
            <severity value="MAJOR"/>
            <testCaseId value="MC-36899"/>
            <useCaseId value="MC-36809"/>
            <group value="cookie"/>
            <group value="configuration"/>
            <group value="pr_exclude"/>
        </annotations>
        <before>
            <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
        </before>
        <after>
            <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
        </after>
        <amOnPage url="/" stepKey="goToHomePage"/>
        <wait time="5" stepKey="waitForPageLoad"/>
        <executeJS function="return window.cookiesConfig.secure ? 'true' : 'false'" stepKey="isCookieSecure"/>
        <assertEquals stepKey="assertCookieIsUnsecure">
            <actualResult type="variable">isCookieSecure</actualResult>
            <expectedResult type="string">false</expectedResult>
        </assertEquals>
        <wait time="10" stepKey="waitForPageLoad2"/>
        <executeJS function="return jQuery.mage.cookies.defaults.secure ? 'true' : 'false'" stepKey="isCookieSecure2"/>
        <assertEquals stepKey="assertCookieIsSecure2">
            <actualResult type="variable">isCookieSecure2</actualResult>
            <expectedResult type="string">false</expectedResult>
        </assertEquals>
    </test>
</tests>

Spamworldpro Mini