File tree Expand file tree Collapse file tree 5 files changed +63
-1
lines changed
dev/tests/functional/tests/app/Magento/Backend/Test/TestCase Expand file tree Collapse file tree 5 files changed +63
-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 =" AssertAdminPageIsNot404ActionGroup" >
12
+ <dontSee userInput =" 404 Error" selector =" {{AdminHeaderSection.pageHeading}}" stepKey =" dontSee404PageHeading" />
13
+ </actionGroup >
14
+ </actionGroups >
Original file line number Diff line number Diff line change 11
11
<section name =" AdminHeaderSection" >
12
12
<element name =" pageTitle" type =" text" selector =" .page-header h1.page-title" />
13
13
<element name =" adminUserAccountText" type =" text" selector =" .page-header .admin-user-account-text" />
14
+ <!-- Legacy heading section. Mostly used for admin 404 and 403 pages -->
15
+ <element name =" pageHeading" type =" text" selector =" .page-content .page-heading" />
14
16
</section >
15
17
</sections >
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 =" AdminLoginAfterJSMinificationTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <title value =" Admin panel should be accessible with JS minification enabled" />
15
+ <description value =" Admin panel should be accessible with JS minification enabled" />
16
+ <group value =" backend" />
17
+ <group value =" mtf_migrated" />
18
+ </annotations >
19
+ <before >
20
+ <magentoCLI command =" config:set {{MinifyJavaScriptFilesEnableConfigData.path}} {{MinifyJavaScriptFilesEnableConfigData.value}}" stepKey =" enableJsMinification" />
21
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
22
+ </before >
23
+ <after >
24
+ <magentoCLI command =" config:set {{MinifyJavaScriptFilesDisableConfigData.path}} {{MinifyJavaScriptFilesDisableConfigData.value}}" stepKey =" disableJsMinification" />
25
+ <actionGroup ref =" logout" stepKey =" logout" />
26
+ </after >
27
+
28
+ <actionGroup ref =" AssertAdminSuccessLoginActionGroup" stepKey =" loggedInSuccessfully" />
29
+ <actionGroup ref =" AssertAdminPageIsNot404ActionGroup" stepKey =" dontSee404Page" />
30
+ </test >
31
+ </tests >
Original file line number Diff line number Diff line change 20
20
<entity name =" DisableAdminAccountSharing" type =" admin_account_sharing_config" >
21
21
<requiredEntity type =" admin_account_sharing_value" >AdminAccountSharingNo</requiredEntity >
22
22
</entity >
23
+ <entity name =" MinifyJavaScriptFilesDisableConfigData" >
24
+ <!-- Default value -->
25
+ <data key =" path" >dev/js/minify_files</data >
26
+ <data key =" scope" >admin</data >
27
+ <data key =" scope_id" >0</data >
28
+ <data key =" label" >No</data >
29
+ <data key =" value" >0</data >
30
+ </entity >
31
+ <entity name =" MinifyJavaScriptFilesEnableConfigData" >
32
+ <data key =" path" >dev/js/minify_files</data >
33
+ <data key =" scope" >admin</data >
34
+ <data key =" scope_id" >0</data >
35
+ <data key =" label" >Yes</data >
36
+ <data key =" value" >1</data >
37
+ </entity >
23
38
</entities >
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/mtf/etc/variations.xsd" >
9
9
<testCase name =" Magento\Backend\Test\TestCase\LoginAfterJSMinificationTest" summary =" Verify login is successful after JS minification is enabled" >
10
10
<variation name =" LoginAfterJSMinificationEnabledVariation1" summary =" Verify login is successful after JS minification" ticketId =" MAGETWO-71416" >
11
- <data name =" tag" xsi : type =" string" >severity:S1</data >
11
+ <data name =" tag" xsi : type =" string" >severity:S1,mftf_migrated:yes </data >
12
12
<data name =" configData" xsi : type =" string" >minify_js_files</data >
13
13
<data name =" menuItem" xsi : type =" string" >Dashboard</data >
14
14
<data name =" pageTitle" xsi : type =" string" >Dashboard</data >
You can’t perform that action at this time.
0 commit comments