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/AdminAddImageForCategoryTest.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="AdminAddImageForCategoryTest">
        <annotations>
            <features value="Catalog"/>
            <stories value="Add/remove images and videos for all product types and category"/>
            <title value="Admin should be able to add image to a Category"/>
            <description value="Admin should be able to add image to a Category"/>
            <severity value="CRITICAL"/>
            <testCaseId value="MC-188"/>
            <group value="Catalog"/>
        </annotations>
        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
        </before>
        <after>
            <actionGroup ref="DeleteCategoryActionGroup" stepKey="DeleteCategory">
                <argument name="categoryEntity" value="SimpleSubCategory"/>
            </actionGroup>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!-- Go to create a new category with image -->
        <actionGroup ref="GoToCreateCategoryPageActionGroup" stepKey="goToCreateCategoryPage"/>
        <actionGroup ref="FillCategoryFormActionGroup" stepKey="fillCategoryForm">
            <argument name="categoryEntity" value="SimpleSubCategory"/>
        </actionGroup>
        <actionGroup ref="AddCategoryImageActionGroup" stepKey="addCategoryImage"/>
        <actionGroup ref="AdminSaveCategoryFormActionGroup" stepKey="saveCategoryForm"/>

        <!-- Verify category with image in admin -->
        <actionGroup ref="CheckCategoryImageInAdminActionGroup" stepKey="checkCategoryImageInAdmin"/>

        <!-- Verify category with image in storefront -->
        <actionGroup ref="CheckCategoryOnStorefrontActionGroup" stepKey="CheckCategoryOnStorefront">
            <argument name="categoryEntity" value="SimpleSubCategory"/>
        </actionGroup>
        <seeElement selector="{{StorefrontCategoryMainSection.imageSource(ProductImage.filename)}}" stepKey="seeImage"/>
    </test>
</tests>

Spamworldpro Mini