From 72617d7036bc4be3f6a57802f55769e3898c212d Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Wed, 8 Sep 2021 12:02:15 -0600 Subject: [PATCH] Fix e2e to not check for X when running locally (#12043) The X server check was only added to make Chrome tests run successfully on CI. --- test/e2e/helpers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index e5ed3a831..63fce278a 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -84,7 +84,10 @@ async function withFixtures(options, testSuite) { }); await segmentServer.start(9090); } - if (process.env.SELENIUM_BROWSER === 'chrome') { + if ( + process.env.SELENIUM_BROWSER === 'chrome' && + process.env.CI === 'true' + ) { await ensureXServerIsRunning(); } const { driver } = await buildWebDriver(driverOptions);