File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 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+
9+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" AdminAssertBackupLinkAbsentInMenuActionGroup" >
12+ <annotations >
13+ <description >Verify 'Backup' link is absent in admin menu.</description >
14+ </annotations >
15+
16+ <click selector =" {{AdminMenuSection.menuItem('magento-backend-system')}}" stepKey =" clickSystem" />
17+ <dontSeeElement selector =" {{AdminMenuSection.menuItem('magento-backup-system-tools-backup')}}" stepKey =" dontSeeBackup" />
18+ </actionGroup >
19+ </actionGroups >
Original file line number Diff line number Diff line change 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+
9+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11+ <test name =" AdminSystemBackupMenuTest" >
12+ <annotations >
13+ <features value =" Backup" />
14+ <stories value =" Backup menu not visible if config disabled" />
15+ <title value =" Backup menu not visible if backup config disabled" />
16+ <description value =" Disable backup config and check backup menu isn't visible" />
17+ <severity value =" AVERAGE" />
18+ <testCaseId value =" MC-36292" />
19+ <group value =" backup" />
20+ </annotations >
21+ <before >
22+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
23+ </before >
24+ <after >
25+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
26+ </after >
27+
28+ <actionGroup ref =" AdminAssertBackupLinkAbsentInMenuActionGroup" stepKey =" verifyBackupLinkAbsentInMenu" />
29+ </test >
30+ </tests >
Original file line number Diff line number Diff line change 77-->
88<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Backend:etc/menu.xsd" >
99 <menu >
10- <add id =" Magento_Backup::system_tools_backup" title =" Backups" translate =" title" module =" Magento_Backup" sortOrder =" 30" parent =" Magento_Backend::system_tools" action =" backup/index" resource =" Magento_Backup::backup" />
10+ <add id =" Magento_Backup::system_tools_backup" title =" Backups" translate =" title" module =" Magento_Backup" sortOrder =" 30" parent =" Magento_Backend::system_tools" action =" backup/index" resource =" Magento_Backup::backup" dependsOnConfig = " system/backup/functionality_enabled " />
1111 </menu >
1212</config >
You can’t perform that action at this time.
0 commit comments