1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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.
This commit is contained in:
Elliot Winkler 2021-09-08 12:02:15 -06:00 committed by GitHub
parent 09d5f43a70
commit 72617d7036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,10 @@ async function withFixtures(options, testSuite) {
}); });
await segmentServer.start(9090); await segmentServer.start(9090);
} }
if (process.env.SELENIUM_BROWSER === 'chrome') { if (
process.env.SELENIUM_BROWSER === 'chrome' &&
process.env.CI === 'true'
) {
await ensureXServerIsRunning(); await ensureXServerIsRunning();
} }
const { driver } = await buildWebDriver(driverOptions); const { driver } = await buildWebDriver(driverOptions);