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/AdminCreateAttributeSetEntityTest.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="AdminCreateAttributeSetEntityTest">
        <annotations>
            <features value="Catalog"/>
            <stories value="Create Attribute Set"/>
            <title value="Create attribute set with new product attribute"/>
            <description value="Admin should be able to create attribute set with new product attribute"/>
            <testCaseId value="MC-10884"/>
            <severity value="BLOCKER"/>
            <group value="mtf_migrated"/>
        </annotations>
        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
            <createData entity="productAttributeWysiwyg" stepKey="createProductAttribute"/>
            <createData entity="CatalogAttributeSet" stepKey="createAttributeSet"/>
        </before>
        <after>
            <deleteData createDataKey="createProductAttribute" stepKey="deleteProductAttribute"/>
            <deleteData createDataKey="createAttributeSet" stepKey="deleteAttributeSet"/>

            <!-- Reindex invalidated indices after product attribute has been created/deleted -->
            <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
                <argument name="indices" value=""/>
            </actionGroup>
        </after>

        <amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets"/>
        <waitForPageLoad stepKey="waitForPageLoad"/>
        <actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel">
            <argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
        </actionGroup>

        <!-- Assert created attribute in an unassigned attributes -->
        <see userInput="$$createProductAttribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.unassignedAttributesTree}}" stepKey="seeAttributeInUnassignedAttr"/>

        <!-- Assign attribute in the group -->
        <actionGroup ref="AssignAttributeToGroupActionGroup" stepKey="assignAttributeToGroup">
            <argument name="group" value="Product Details"/>
            <argument name="attribute" value="$$createProductAttribute.attribute_code$$"/>
        </actionGroup>
        <see userInput="$$createProductAttribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.groupTree}}" stepKey="seeAttributeInGroup"/>
        <actionGroup ref="SaveAttributeSetActionGroup" stepKey="SaveAttributeSet"/>
        <amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSets2"/>
        <waitForPageLoad stepKey="waitForPageLoad2"/>

        <!-- Assert an attribute in the group-->
        <actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="filterProductAttributeSetGridByLabel2">
            <argument name="name" value="$$createAttributeSet.attribute_set_name$$"/>
        </actionGroup>
        <see userInput="$$createProductAttribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.groupTree}}" stepKey="seeAttributeInGroup2"/>

        <!-- Assert attribute can be used in product creation -->
        <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGrid"/>
        <comment userInput="Adding the comment to replace clickAddProductToggle action for preserving Backward Compatibility" stepKey="clickAddProductDropdown"/>
        <actionGroup ref="AdminClickAddProductToggleAndSelectProductTypeActionGroup" stepKey="clickAddSimpleProduct">
            <argument name="productType" value="simple"/>
        </actionGroup>

        <!-- Switch from default attribute set to new attribute set -->
        <actionGroup ref="AdminSelectAttributeSetOnEditProductPageActionGroup" stepKey="startEditAttrSet">
            <argument name="attributeSet" value="$$createAttributeSet.attribute_set_name$$"/>
        </actionGroup>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="searchForAttrSet"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectAttrSet"/>

        <!-- See new attribute set -->
        <see selector="{{AdminProductFormSection.attributeSet}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="seeAttributeSetName"/>
    </test>
</tests>

Spamworldpro Mini