| Current Path : /home/rtorresani/www/vendor/magento/module-catalog/Test/Mftf/Test/ |
| Current File : //home/rtorresani/www/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>