chore: unify e2e tests launchpad (#18314)

This commit is contained in:
Tim Griesser
2021-09-30 16:50:39 -04:00
committed by GitHub
parent d39b1694aa
commit c200e95e14
7 changed files with 52 additions and 12 deletions
+1 -6
View File
@@ -12,6 +12,7 @@ const debugXvfb = Debug('cypress:xvfb')
debug.Debug = debugXvfb.Debug = Debug
const xvfbOptions = {
displayNum: process.env.XVFB_DISPLAY_NUM,
timeout: 30000, // milliseconds
// need to explicitly define screen otherwise electron will crash
// https://github.com/cypress-io/cypress/issues/6184
@@ -58,12 +59,6 @@ module.exports = {
},
isNeeded () {
// Used when we're using Cypress to test Cypress - the headless Cypress
// doesn't need Xvfb
if (process.env.CYPRESS_INTERNAL_E2E_TESTING_SELF) {
return false
}
if (process.env.ELECTRON_RUN_AS_NODE) {
debug('Environment variable ELECTRON_RUN_AS_NODE detected, xvfb is not needed')