cypress 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tasks/verify.js
CHANGED
@@ -20,6 +20,7 @@ var _require = require('common-tags'),
|
|
20
20
|
var Promise = require('bluebird');
|
21
21
|
var logSymbols = require('log-symbols');
|
22
22
|
var path = require('path');
|
23
|
+
var os = require('os');
|
23
24
|
|
24
25
|
var _require2 = require('../errors'),
|
25
26
|
throwFormErrorText = _require2.throwFormErrorText,
|
@@ -92,6 +93,7 @@ var runSmokeTest = function runSmokeTest(binaryDir, options) {
|
|
92
93
|
|
93
94
|
if (needsSandbox()) {
|
94
95
|
// electron requires --no-sandbox to run as root
|
96
|
+
debug('disabling Electron sandbox');
|
95
97
|
args.unshift('--no-sandbox');
|
96
98
|
}
|
97
99
|
|
@@ -311,19 +313,20 @@ var start = function start() {
|
|
311
313
|
};
|
312
314
|
|
313
315
|
var isLinuxLike = function isLinuxLike() {
|
314
|
-
return
|
315
|
-
};
|
316
|
-
|
317
|
-
var isRootUser = function isRootUser() {
|
318
|
-
return process.geteuid() === 0;
|
316
|
+
return os.platform() !== 'win32';
|
319
317
|
};
|
320
318
|
|
321
319
|
/**
|
322
320
|
* Returns true if running on a system where Electron needs "--no-sandbox" flag.
|
323
321
|
* @see https://crbug.com/638180
|
322
|
+
*
|
323
|
+
* On Debian we had problems running in sandbox even for non-root users.
|
324
|
+
* @see https://github.com/cypress-io/cypress/issues/5434
|
325
|
+
* Seems there is a lot of discussion around this issue among Electron users
|
326
|
+
* @see https://github.com/electron/electron/issues/17972
|
324
327
|
*/
|
325
328
|
var needsSandbox = function needsSandbox() {
|
326
|
-
return isLinuxLike()
|
329
|
+
return isLinuxLike();
|
327
330
|
};
|
328
331
|
|
329
332
|
module.exports = {
|
package/package.json
CHANGED
@@ -43,9 +43,9 @@ declare module 'cypress' {
|
|
43
43
|
*/
|
44
44
|
reporter: string,
|
45
45
|
/**
|
46
|
-
* A String glob pattern of the test files to load.
|
46
|
+
* A String or Array of string glob pattern of the test files to load.
|
47
47
|
*/
|
48
|
-
testFiles: string
|
48
|
+
testFiles: string | string[]
|
49
49
|
|
50
50
|
//
|
51
51
|
// timeouts
|
@@ -290,7 +290,7 @@ declare module 'cypress' {
|
|
290
290
|
})
|
291
291
|
```
|
292
292
|
*/
|
293
|
-
interface CypressOpenOptions extends CypressCommonOptions
|
293
|
+
interface CypressOpenOptions extends CypressCommonOptions {
|
294
294
|
/**
|
295
295
|
* Specify a filesystem path to a custom browser
|
296
296
|
*/
|