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-catalog-search/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-catalog-search/Test/Mftf/Test/AdminDeleteSearchTermTest.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="AdminDeleteSearchTermTest">
        <annotations>
            <stories value="Search terms"/>
            <title value="Delete Search Term and Verify Storefront"/>
            <description value="Test log in to SearchTerm and DeleteSearchTerm"/>
            <testCaseId value="MC-13988"/>
            <severity value="CRITICAL"/>
            <group value="CatalogSearch"/>
            <group value="mtf_migrated"/>
        </annotations>

        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
            <createData entity="SimpleSubCategory" stepKey="initialCategoryEntity"/>
            <createData entity="SimpleProduct" stepKey="simpleProduct">
                <requiredEntity createDataKey="initialCategoryEntity"/>
            </createData>
        </before>
        <after>
            <deleteData stepKey="deleteSimpleSubCategory" createDataKey="initialCategoryEntity"/>
            <deleteData stepKey="deleteSimpleProduct" createDataKey="simpleProduct"/>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!--Add new search term-->
        <actionGroup ref="AssertSearchTermSaveSuccessMessageActionGroup" stepKey="addNewSearchTerm">
            <argument name="searchQuery" value="{{SimpleTerm.search_query}}"/>
            <argument name="storeValue" value="{{SimpleTerm.store_id}}"/>
            <argument name="redirectUrl" value="{{SimpleTerm.redirect}}"/>
            <argument name="displayInSuggestedTerm" value="{{SimpleTerm.display_in_terms}}"/>
        </actionGroup>

        <!--Search and delete search term and AssertSearchTermSuccessDeleteMessage-->
        <actionGroup ref="AssertSearchTermSuccessDeleteMessageActionGroup" stepKey="deleteSearchTerm">
            <argument name="searchQuery" value="{{SimpleTerm.search_query}}"/>
        </actionGroup>

        <!--Verify deleted search term in grid and AssertSearchTermNotInGrid-->
        <actionGroup ref="AssertSearchTermNotInGridActionGroup" stepKey="verifyDeletedSearchTermNotInGrid">
            <argument name="searchQuery" value="{{SimpleTerm.search_query}}"/>
        </actionGroup>

        <!--Go to storefront and Verify AssertSearchTermNotOnFrontend-->
        <actionGroup ref="AssertSearchTermNotOnFrontendActionGroup" stepKey="verifySearchTermNotOnFrontend">
            <argument name="searchQuery" value="{{SimpleTerm.search_query}}"/>
            <argument name="url_key" value="$$simpleProduct.custom_attributes[url_key]$$"/>
        </actionGroup>
    </test>
</tests>

Spamworldpro Mini