![]() 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/ |
<?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="AdminDeleteDefaultStoreViewTest"> <annotations> <stories value="Store creation ('app:config:import' with pre-defined stores) fails during installation"/> <title value="Delete Default Store View"/> <description value="Test another store view should be set as default when default store view is deleted"/> <testCaseId value="MC-19306"/> <severity value="CRITICAL"/> <group value="store"/> </annotations> <before> <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> </before> <after> <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> </after> <!--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"/> <!--Change the default store view to the custom store view--> <actionGroup ref="ChangeDefaultStoreViewActionGroup" stepKey="changeDefaultStoreViewToCustomStoreView"> <argument name="storeGroupName" value="{{_defaultStoreGroup.name}}"/> <argument name="storeViewName" value="{{storeViewData.name}}"/> </actionGroup> <!--Delete custom store view --> <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteCustomStoreView"> <argument name="customStore" value="storeViewData"/> </actionGroup> <magentoCron groups="index" stepKey="reindex2"/> <!--Verify that the default store view is now the default store view--> <actionGroup ref="AssertDefaultStoreViewActionGroup" stepKey="assertDefaultStoreViewActionGroup"> <argument name="storeGroupName" value="{{_defaultStoreGroup.name}}"/> <argument name="storeViewName" value="{{_defaultStore.name}}"/> </actionGroup> </test> </tests>