File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed
dev/tests/functional/tests/app/Magento/Backend/Test Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 190
190
<item name =" scope_id" xsi : type =" number" >0</item >
191
191
<item name =" label" xsi : type =" string" >Yes</item >
192
192
<item name =" value" xsi : type =" number" >1</item >
193
-
194
193
</field >
195
194
</dataset >
196
195
Original file line number Diff line number Diff line change @@ -44,21 +44,34 @@ class LoginAfterJSMinificationTest extends Injectable
44
44
* @param Dashboard $adminDashboardPage
45
45
* @return void
46
46
*/
47
- public function __inject (Dashboard $ adminDashboardPage , TestStepFactory $ stepFactory )
48
- {
47
+ public function __inject (
48
+ Dashboard $ adminDashboardPage ,
49
+ TestStepFactory $ stepFactory
50
+ ) {
49
51
$ this ->adminDashboardPage = $ adminDashboardPage ;
50
52
$ this ->stepFactory = $ stepFactory ;
51
53
}
52
54
53
- public function test (DeployMode $ cli , $ configData = null )
54
- {
55
+ /**
56
+ * Admin login test after JS minification is turned on in production mode
57
+ * @param DeployMode $cli
58
+ * @param null $configData
59
+ * @return void
60
+ */
61
+ public function test (
62
+ DeployMode $ cli ,
63
+ $ configData = null
64
+ ) {
65
+ $ this ->configData = $ configData ;
66
+
55
67
//Pre-conditions
56
68
$ cli ->setDeployModeToDeveloper ();
57
- $ this ->configData = $ configData ;
58
69
$ this ->objectManager ->create (
59
70
\Magento \Config \Test \TestStep \SetupConfigurationStep::class,
60
71
['configData ' => $ this ->configData ]
61
72
)->run ();
73
+
74
+ // Steps
62
75
$ cli ->setDeployModeToProduction ();
63
76
$ this ->adminDashboardPage ->open ();
64
77
}
You can’t perform that action at this time.
0 commit comments