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-store/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-store/Test/Mftf/Test/AdminUpdateStoreViewTest.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->
<!-- Test XML Example -->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
        <test name="AdminUpdateStoreViewTest">
            <annotations>
                <stories value="Update Store View"/>
                <title value="Update Store View and Verify Backend and Frontend"/>
                <description value="Test log in to Stores and Update Store View Test"/>
                <testCaseId value="MC-14316"/>
                <severity value="CRITICAL"/>
                <group value="store"/>
                <group value="mtf_migrated"/>
            </annotations>
            <before>
                <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
                <!--Create custom store view-->
                <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createNewStoreView">
                    <argument name="StoreGroup" value="_defaultStoreGroup"/>
                    <argument name="customStore" value="storeViewData"/>
                </actionGroup>
                <magentoCron groups="index" stepKey="reindex"/>
            </before>
            <after>
                <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreView">
                    <argument name="customStore" value="storeViewData"/>
                </actionGroup>
                <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteUpdatedStoreView">
                    <argument name="customStore" value="SecondStoreUnique"/>
                </actionGroup>
                <magentoCron groups="index" stepKey="reindex"/>
                <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
            </after>

            <!--Search created store view in grid-->
            <actionGroup ref="AssertStoreViewInGridActionGroup" stepKey="searchCreatedStoreViewInGrid">
                <argument name="storeViewName" value="{{storeViewData.name}}"/>
            </actionGroup>
            <actionGroup ref="AdminOpenStoreInFirstRowInStoresGridActionGroup" stepKey="clickStoreViewFirstRowInGrid"/>

            <!--Update created store view as per requirements-->
            <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="updateStoreView">
                <argument name="StoreGroup" value="_defaultStoreGroup"/>
                <argument name="customStore" value="SecondStoreUnique"/>
            </actionGroup>
            <!--Save the updated Store view and verify AssertStoreViewSuccessSaveMessage-->
            <actionGroup ref="AdminCreateStoreViewSaveActionGroup" stepKey="verifyAssertStoreViewSuccessSaveMessage">
            </actionGroup>

            <!--Search updated store view in grid and verify AssertStoreViewInGridMessage-->
            <actionGroup ref="AssertStoreViewInGridActionGroup" stepKey="verifyUpdatedStoreViewInGrid">
                <argument name="storeViewName" value="{{SecondStoreUnique.name}}"/>
            </actionGroup>

            <!--Go to store view form page and verify AssertStoreForm-->
            <actionGroup ref="AssertStoreViewFormActionGroup" stepKey="verifyStoreViewForm">
                <argument name="storeDropdown" value="{{_defaultStoreGroup.name}}"/>
                <argument name="storeViewName" value="{{SecondStoreUnique.name}}"/>
                <argument name="storeViewCode" value="{{SecondStoreUnique.code}}"/>
                <argument name="status" value="Enabled"/>
            </actionGroup>

            <!--Go to store configuration page and verify AssertStoreBackend-->
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigStoreConfigurationPage"/>
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSystemStoreConfigurationPageLoad"/>
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickDefaultConfigButton"/>
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeAssertStoreViewInDefaultConfigDropdown"/>
            <actionGroup ref="AssertStoreConfigurationBackendActionGroup" stepKey="seeAssertUpdateStoreViewInDefaultConfigDropdown">
                <argument name="storeView1" value="{{storeViewData.name}}"/>
                <argument name="storeView2" value="{{SecondStoreUnique.name}}"/>
            </actionGroup>

            <!--Go to storefront and verify AssertStoreFrontend-->
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToStorefrontPage"/>
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectStoreSwitcher"/>
            <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForFirstStoreView"/>
            <actionGroup ref="AssertStorefrontStoreVisibleInHeaderActionGroup" stepKey="seeAssertStoreViewOnStorefront">
                <argument name="store" value="{{storeViewData.name}}"/>
            </actionGroup>
            <actionGroup ref="AssertStorefrontStoreVisibleInHeaderActionGroup" stepKey="seeAssertUpdatedStoreViewOnStorefront">
                <argument name="store" value="{{SecondStoreUnique.name}}"/>
            </actionGroup>
        </test>
</tests>

Spamworldpro Mini