File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
app/code/Magento/Backend/Test/Mftf Expand file tree Collapse file tree 2 files changed +54
-0
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
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" AdminEnableUrlRewritesConfigData" >
12
+ <data key =" path" >web/seo/use_rewrites</data >
13
+ <data key =" value" >1</data >
14
+ </entity >
15
+ <entity name =" AdminDisableUrlRewritesConfigData" >
16
+ <data key =" path" >web/seo/use_rewrites</data >
17
+ <data key =" value" >0</data >
18
+ </entity >
19
+ </entities >
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 =" AdminLoginSuccessfulWithRewritesDisabledTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <stories value =" Login on the Admin Login page" />
15
+ <title
16
+ value =" Admin should be able to log into the Magento Admin backend successfully if url rewrites are disabled" />
17
+ <description
18
+ value =" Admin should be able to log into the Magento Admin backend successfully if url rewrites are disabled" />
19
+ <severity value =" CRITICAL" />
20
+ <group value =" example" />
21
+ <group value =" login" />
22
+ </annotations >
23
+
24
+ <before >
25
+ <magentoCLI command =" config:set {{AdminDisableUrlRewritesConfigData.path}} {{AdminDisableUrlRewritesConfigData.value}}" stepKey =" disableUrlRewrites" />
26
+ </before >
27
+ <after >
28
+ <magentoCLI command =" config:set {{AdminEnableUrlRewritesConfigData.path}} {{AdminEnableUrlRewritesConfigData.value}}" stepKey =" enableUrlRewrites" />
29
+ </after >
30
+
31
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
32
+ <actionGroup ref =" AssertAdminSuccessLoginActionGroup" stepKey =" assertLoggedIn" />
33
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
34
+ </test >
35
+ </tests >
You can’t perform that action at this time.
0 commit comments