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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-catalog/Test/Mftf/Test/AdminMoveAnchoredCategoryTest.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="AdminMoveAnchoredCategoryTest">
        <annotations>
            <features value="Catalog"/>
            <stories value="Edit categories"/>
            <title value="Admin should be able to move a category via categories tree and changes should be applied on frontend without a forced cache cleaning"/>
            <description value="Admin should be able to move a category via categories tree and changes should be applied on frontend without a forced cache cleaning"/>
            <severity value="BLOCKER"/>
            <testCaseId value="MC-10022"/>
            <useCaseId value="MAGETWO-89248"/>
            <group value="category"/>
        </annotations>
        <before>
            <createData entity="SimpleSubCategory" stepKey="simpleSubCategoryOne"/>
            <createData entity="SimpleSubCategory" stepKey="simpleSubCategoryTwo"/>
            <createData entity="SubCategoryWithParent" stepKey="simpleSubCategoryWithParent">
                <requiredEntity createDataKey="simpleSubCategoryOne"/>
            </createData>
            <createData entity="_defaultProduct" stepKey="productOne">
                <requiredEntity createDataKey="simpleSubCategoryWithParent"/>
            </createData>
            <createData entity="_defaultProduct" stepKey="productTwo">
                <requiredEntity createDataKey="simpleSubCategoryOne"/>
            </createData>
            <magentoCron groups="index" stepKey="RunToScheduleJobs"/>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
        </before>

        <after>
            <deleteData createDataKey="productOne" stepKey="deleteProductOne"/>
            <deleteData createDataKey="productTwo" stepKey="deleteProductTwo"/>
            <deleteData createDataKey="simpleSubCategoryWithParent" stepKey="deleteSubcategoryWithParent"/>
            <deleteData createDataKey="simpleSubCategoryOne" stepKey="deleteSubcategoryOne"/>
            <deleteData createDataKey="simpleSubCategoryTwo" stepKey="deleteSubcategoryTwo"/>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAdminUserAfterTest"/>
        </after>

        <!--Move category one to category two-->
        <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToAdminCategoryPage"/>
        <actionGroup ref="MoveCategoryActionGroup" stepKey="moveSimpleSubCategoryOneToSimpleSubCategoryTwo">
            <argument name="childCategory" value="$simpleSubCategoryOne.name$"/>
            <argument name="parentCategory" value="$simpleSubCategoryTwo.name$"/>
        </actionGroup>
        <!--Verify that navigation menu categories level is correct-->
        <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage1"/>
        <seeElement selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryTwo.name$)}}" stepKey="verifyThatTopCategoryIsSubCategoryTwo"/>
        <moveMouseOver selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryTwo.name$)}}" stepKey="mouseOverSubCategoryTwo"/>
        <waitForAjaxLoad stepKey="waitForAjaxOnMouseOverSubCategoryTwo"/>
        <seeElement selector="{{StorefrontNavigationSection.subCategory($simpleSubCategoryOne.name$)}}" stepKey="verifyThatFirstLevelIsSubCategoryOne"/>
        <moveMouseOver selector="{{StorefrontNavigationSection.subCategory($simpleSubCategoryOne.name$)}}" stepKey="mouseOverSubCategoryOne"/>
        <waitForAjaxLoad stepKey="waitForAjaxOnMouseOverSubCategoryOne"/>
        <seeElement selector="{{StorefrontNavigationSection.subCategory($simpleSubCategoryWithParent.name$)}}" stepKey="verifyThatSecondLevelIsSubCategoryWithParent1"/>
        <!--Open category one via navigation menu. Verify that subcategory is shown in layered navigation-->
        <click selector="{{StorefrontNavigationSection.subCategory($simpleSubCategoryOne.name$)}}" stepKey="openSimpleSubCategoryOneByNavigationMenu1"/>
        <actionGroup ref="CheckItemInLayeredNavigationActionGroup" stepKey="verifySimpleSubCategoryWithParentInLayeredNavigation1">
            <argument name="itemType" value="Category"/>
            <argument name="itemName" value="$simpleSubCategoryWithParent.name$"/>
        </actionGroup>
        <!--Open category one by direct URL. Verify simple product is visible on it. Open this product and perform assertions-->
        <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openFirstProductFromSubCategoryOneCategoryPage1">
            <argument name="category" value="$simpleSubCategoryOne$"/>
            <argument name="product" value="$productOne$"/>
        </actionGroup>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs1"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryTwo.name$" stepKey="seeSubCategoryTwoInBreadcrumbsOnSubCategoryOne"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryOneInBreadcrumbsOnSubCategoryOne1"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$productOne.name$" stepKey="seeProductInBreadcrumbsOnSubCategoryOne1"/>
        <!--Open category two by direct URL. Verify simple product is visible on it. Open this product and perform assertions-->
        <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openFirstProductFromSubCategoryWithParentCategoryPage">
            <argument name="category" value="$simpleSubCategoryWithParent$"/>
            <argument name="product" value="$productOne$"/>
        </actionGroup>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbsOnSubCategoryWithParent"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryTwo.name$" stepKey="seeSubCategoryTwoInBreadcrumbsOnSubCategoryWithParent"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryOneInBreadcrumbsOnSubCategoryWithParent"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryWithParentInBreadcrumbsOnSubCategoryWithParent"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$productOne.name$" stepKey="seeProductInBreadcrumbsOnSubCategoryWithParent"/>
        <!--Move category one to the same level as category two-->
        <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToAdminCategoryPage2"/>
        <actionGroup ref="MoveCategoryActionGroup" stepKey="moveSimpleSubCategoryOneToDefaultCategory">
            <argument name="childCategory" value="$simpleSubCategoryOne.name$"/>
            <argument name="parentCategory" value="Default Category"/>
        </actionGroup>
        <!--Verify that navigation menu categories level is correct-->
        <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage2"/>
        <seeElement selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryOne.name$)}}" stepKey="verifyThatSubCategoryOneIsTopCategory"/>
        <seeElement selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryTwo.name$)}}" stepKey="verifyThatSubCategoryTwoIsTopCategory"/>
        <moveMouseOver selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryOne.name$)}}" stepKey="mouseOverTopSubCategoryOne"/>
        <waitForAjaxLoad stepKey="waitForAjaxOnMouseOverTopSubCategoryOne"/>
        <seeElement selector="{{StorefrontNavigationSection.subCategory($simpleSubCategoryWithParent.name$)}}" stepKey="verifyThatSecondLevelIsSubCategoryWithParent2"/>
        <!--Open category one via navigation menu. Verify that subcategory is shown in layered navigation-->
        <click selector="{{StorefrontNavigationSection.topCategory($simpleSubCategoryOne.name$)}}" stepKey="openSimpleSubCategoryOneByNavigationMenu2"/>
        <actionGroup ref="CheckItemInLayeredNavigationActionGroup" stepKey="verifySimpleSubCategoryWithParentInLayeredNavigation2">
            <argument name="itemType" value="Category"/>
            <argument name="itemName" value="$simpleSubCategoryWithParent.name$"/>
        </actionGroup>
        <!--Open category one by direct URL. Verify simple product is visible on it. Open this product and perform assertions-->
        <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openFirstProductFromSubCategoryOneCategoryPage2">
            <argument name="category" value="$simpleSubCategoryOne$"/>
            <argument name="product" value="$productOne$"/>
        </actionGroup>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs2"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryOneInBreadcrumbsOnSubCategoryOne2"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$productOne.name$" stepKey="seeProductInBreadcrumbsOnSubCategoryOne2"/>
        <!--Open category subcategory by direct URL. Verify simple product is visible on it. Open this product and perform assertions-->
        <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openFirstProductFromSubCategoryOneCategoryPage3">
            <argument name="category" value="$simpleSubCategoryWithParent$"/>
            <argument name="product" value="$productOne$"/>
        </actionGroup>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs3"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryOneInBreadcrumbsOnSubCategoryOne3"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$simpleSubCategoryOne.name$" stepKey="seeSubCategoryWithParentInBreadcrumbsOnSubCategoryWithParent3"/>
        <see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$productOne.name$" stepKey="seeProductInBreadcrumbsOnSubCategoryOne3"/>
    </test>
</tests>

Spamworldpro Mini