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-page-cache/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/vendor/magento/module-page-cache/Test/Mftf/Test/CatalogRememberPaginationTest.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="CatalogRememberPaginationTest">
        <annotations>
            <features value="PageCache"/>
            <stories value="FormKey"/>
            <title value="Form Key value should be updated from UI if pagination remember is enabled"/>
            <description value="Form Key value should be updated from UI in cookies, if catalog remember pagination is enabled and the form key is set"/>
            <testCaseId value="AC-2887"/>
            <useCaseId value="ACP2E-711"/>
            <severity value="MAJOR"/>
            <group value="pageCache"/>
        </annotations>
        <before>
            <!-- Create Data -->
            <createData entity="_defaultCategory" stepKey="createCategory"/>
            <createData entity="_defaultProduct" stepKey="createProduct">
                <requiredEntity createDataKey="createCategory"/>
            </createData>

            <createData entity="RememberPaginationCatalogStorefrontConfig" stepKey="setRememberPaginationCatalogStorefrontConfig"/>

            <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
                <argument name="tags" value="full_page config"/>
            </actionGroup>
        </before>
        <after>
            <!-- Delete and revert data -->
            <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
            <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
            <createData entity="DefaultCatalogStorefrontConfiguration" stepKey="setDefaultCatalogStorefrontConfiguration"/>
            <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
                <argument name="tags" value="full_page config"/>
            </actionGroup>
        </after>
        <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage">
            <argument name="categoryName" value="$$createCategory.name$$"/>
        </actionGroup>
        <grabValueFrom selector="{{StorefrontProductActionSection.inputFormKey}}" stepKey="grabCachedValue"/>
        <resetCookie userInput="PHPSESSID" stepKey="resetSessionCookie"/>
        <resetCookie userInput="form_key" stepKey="resetFormKeyCookie"/>
        <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="reopenCategoryPage">
            <argument name="categoryName" value="$$createCategory.name$$"/>
        </actionGroup>
        <grabValueFrom selector="{{StorefrontProductActionSection.inputFormKey}}" stepKey="grabCachedValue2"/>
        <assertEquals stepKey="matchFromKey">
            <expectedResult type="variable">grabCachedValue</expectedResult>
            <actualResult type="variable">grabCachedValue2</actualResult>
        </assertEquals>
    </test>
</tests>

Spamworldpro Mini