Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-sales/Test/Mftf/Test/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-sales/Test/Mftf/Test/AdminCreateOrderStatusTest.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="AdminCreateOrderStatusTest">
        <annotations>
            <stories value="Create custom order status"/>
            <title value="Create custom order status"/>
            <description value="Tests opening admin order status page, create a new order status with success message"/>
            <testCaseId value="MC-15431" />
            <severity value="AVERAGE"/>
            <group value="sales"/>
            <group value="mtf_migrated"/>
        </annotations>
        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
        </before>
        <after>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!-- Go to new order status page -->
        <actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
        <actionGroup ref="AdminClickCreateNewStatusButtonOnOrderStatusPageActionGroup" stepKey="clickCreateNewStatus"/>

        <!-- Fill the form and validate message -->
        <actionGroup ref="AdminOrderStatusFormFillAndSave" stepKey="fillFormAndClickSave">
            <argument name="status" value="{{defaultOrderStatus.status}}"/>
            <argument name="label" value="{{defaultOrderStatus.label}}"/>
        </actionGroup>
        <actionGroup ref="AssertOrderStatusFormSaveSuccess" stepKey="seeFormSaveSuccess"/>

        <!-- Verify the order status grid page shows the order status we just created -->
        <actionGroup ref="AssertOrderStatusExistsInGrid" stepKey="searchCreatedOrderStatus">
            <argument name="status" value="{{defaultOrderStatus.status}}"/>
            <argument name="label" value="{{defaultOrderStatus.label}}"/>
        </actionGroup>
    </test>
</tests>