1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <!-- Test XML Example -->
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
10
+ <test name =" AdminDeleteStoreGroupTest" >
11
+ <annotations >
12
+ <stories value =" Delete Store Group" />
13
+ <title value =" DeleteStoreGroupEntityTestVariation1" />
14
+ <description value =" Test log in to Stores and Delete Store Group Test" />
15
+ <testCaseId value =" MC-14297" />
16
+ <severity value =" CRITICAL" />
17
+ <group value =" store" />
18
+ <group value =" mtf_migrated" />
19
+ </annotations >
20
+
21
+ <before >
22
+ <magentoCLI command =" config:set system/backup/functionality_enabled 1" stepKey =" setEnableBackupToYes" />
23
+ <actionGroup ref = " LoginAsAdmin" stepKey =" loginAsAdmin" />
24
+ <!-- Create custom store group-->
25
+ <actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" createNewCustomStoreGroup" >
26
+ <argument name =" website" value =" {{_defaultWebsite.name}}" />
27
+ <argument name =" storeGroupName" value =" {{customStore.name}}" />
28
+ <argument name =" storeGroupCode" value =" {{customStore.code}}" />
29
+ </actionGroup >
30
+ </before >
31
+ <after >
32
+ <magentoCLI command =" config:set system/backup/functionality_enabled 0" stepKey =" setEnableBackupToNo" />
33
+ <actionGroup ref =" logout" stepKey =" logout" />
34
+ </after >
35
+
36
+ <!-- Delete custom store group and verify AssertStoreGroupSuccessDeleteAndBackupMessages-->
37
+ <actionGroup ref =" DeleteCustomStoreBackupEnabledYesActionGroup" stepKey =" deleteCustomStoreGroup" >
38
+ <argument name =" storeGroupName" value =" {{customStore.name}}" />
39
+ </actionGroup >
40
+
41
+ <!-- Verify deleted Store group is not present in grid and verify AssertStoreGroupNotInGrid message-->
42
+ <actionGroup ref =" AssertStoreNotInGrid" stepKey =" verifyDeletedStoreGroupNotInGrid" >
43
+ <argument name =" storeGroupName" value =" {{customStore.name}}" />
44
+ </actionGroup >
45
+
46
+ <!-- Go to backup index page and verify AssertBackupInGrid-->
47
+ <amOnPage url =" {{BackupIndexPage.url}}" stepKey =" goToBackupIndexPage" />
48
+ <waitForPageLoad stepKey =" waitForBackupIndexPageLoad" />
49
+ <see selector =" {{AdminGridTableSection.backupNameColumn}}" userInput =" {{WebSetupWizardBackup.name}}" stepKey =" seeBackupInGrid" />
50
+ <!-- Delete database backup-->
51
+ <actionGroup ref =" deleteBackup" stepKey =" deleteDatabaseBackup" >
52
+ <argument name =" backup" value =" WebSetupWizardBackup" />
53
+ </actionGroup >
54
+ </test >
55
+ </tests >
0 commit comments