cypress 3.8.2 → 3.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/exec/xvfb.js +9 -2
- package/package.json +1 -1
package/lib/exec/xvfb.js
CHANGED
@@ -20,20 +20,27 @@ var _require2 = require('../errors'),
|
|
20
20
|
|
21
21
|
var util = require('../util');
|
22
22
|
|
23
|
-
var
|
23
|
+
var xvfbOptions = {
|
24
24
|
timeout: 30000, // milliseconds
|
25
|
+
// need to explicitly define screen otherwise electron will crash
|
26
|
+
// https://github.com/cypress-io/cypress/issues/6184
|
27
|
+
xvfb_args: ['-screen', '0', '1280x1024x24'],
|
25
28
|
onStderrData: function onStderrData(data) {
|
26
29
|
if (debugXvfb.enabled) {
|
27
30
|
debugXvfb(data.toString());
|
28
31
|
}
|
29
32
|
}
|
30
|
-
}
|
33
|
+
};
|
34
|
+
|
35
|
+
var xvfb = Promise.promisifyAll(new Xvfb(xvfbOptions));
|
31
36
|
|
32
37
|
module.exports = {
|
33
38
|
_debugXvfb: debugXvfb, // expose for testing
|
34
39
|
|
35
40
|
_xvfb: xvfb, // expose for testing
|
36
41
|
|
42
|
+
_xvfbOptions: xvfbOptions, // expose for testing
|
43
|
+
|
37
44
|
start: function start() {
|
38
45
|
debug('Starting Xvfb');
|
39
46
|
|