File tree Expand file tree Collapse file tree 5 files changed +40
-6
lines changed
dev/tests/functional/tests/app/Magento/Backend/Test/TestCase Expand file tree Collapse file tree 5 files changed +40
-6
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 17
17
<group value =" mtf_migrated" />
18
18
</annotations >
19
19
<before >
20
- <magentoCLI command =" config:set dev/js/minify_files 1 " stepKey =" enableJsMinification" />
21
- <magentoCLI command = " cache:clean config " stepKey =" cleanCache " />
20
+ <magentoCLI command =" config:set {{MinifyJavaScriptFilesEnableConfigData.path}} {{MinifyJavaScriptFilesEnableConfigData.value}} " stepKey =" enableJsMinification" />
21
+ <actionGroup ref = " LoginAsAdmin " stepKey =" loginAsAdmin " />
22
22
</before >
23
+ <after >
24
+ <magentoCLI command =" config:set {{MinifyJavaScriptFilesDisableConfigData.path}} {{MinifyJavaScriptFilesDisableConfigData.value}}" stepKey =" disableJsMinification" />
25
+ <actionGroup ref =" logout" stepKey =" logout" />
26
+ </after >
23
27
24
- <actionGroup ref =" LoginAsAdmin " stepKey =" loginAsAdmin " />
25
- <see userInput = " Dashboard " selector = " {{AdminHeaderSection.pageTitle}} " stepKey =" seeDashboardTitle " />
28
+ <actionGroup ref =" AssertAdminSuccessLoginActionGroup " stepKey =" loggedInSuccessfully " />
29
+ <actionGroup ref = " AssertAdminPageIsNot404ActionGroup " stepKey =" dontSee404Page " />
26
30
</test >
27
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 >
15
- <data name =" tag" xsi : type =" string" >mftf_migrated:yes</data >
16
15
<constraint name =" Magento\Backend\Test\Constraint\AssertBackendPageIsAvailable" />
17
16
</variation >
18
17
</testCase >
You can’t perform that action at this time.
0 commit comments