Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-widget/Test/Mftf/Test/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-widget/Test/Mftf/Test/NewProductsListWidgetTest.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">

    <!-- This test exists to serve as a base for extension for other tests -->
    <test name="NewProductsListWidgetTest">
        <annotations>
            <group value="WYSIWYGDisabled"/>
            <features value="Widget"/>
            <stories value="New products list widget"/>
            <title value="Admin should be able to set products as new so that they show up in the Catalog New Products List Widget"/>
            <description value="Admin should be able to set products as new so that they show up in the Catalog New Products List Widget"/>
            <severity value="BLOCKER"/>
            <group value="Widget"/>
        </annotations>

        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
            <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
        </before>

        <after>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!-- Create a CMS page containing the New Products widget -->
        <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnCmsList"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsList"/>
        <actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPageButton"/>
        <actionGroup ref="AdminCmsPageSetTitleActionGroup" stepKey="fillPageTitle">
            <argument name="newTitle" value="{{_newDefaultCmsPage.title}}"/>
        </actionGroup>
        <actionGroup ref="AdminExpandContentSectionActionGroup" stepKey="expandContentSection"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForContentSection"/>
        <actionGroup ref="AdminInsertCatalogNewProductListWidgetForCmsPageContentSectionActionGroup" stepKey="clickInsertWidgetButton">
            <argument name="displayType" value="New products"/>
            <argument name="numberOfProductsToDisplay" value="100"/>
        </actionGroup>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSlideOut"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectWidgetType"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForWidgetOptions"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectDisplayType"/>
        <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillNoOfProductToDisplay"/>
        <actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="clickInsertWidget"/>
        <actionGroup ref="AdminExpandSeoSectionActionGroup" stepKey="expandSeoSection"/>
        <actionGroup ref="AdminCmsPageSetUrlActionGroup" stepKey="fillPageUrlKey">
            <argument name="urlKey" value="{{_newDefaultCmsPage.identifier}}"/>
        </actionGroup>
        <actionGroup ref="SaveCmsPageActionGroup" stepKey="clickSaveCmsPage"/>
    </test>
</tests>