diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index 269a72528..d64e9afb5 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -40,7 +40,10 @@ describe('MetaMask', function () { dappServer.on('listening', resolve); dappServer.on('error', reject); }); - if (process.env.SELENIUM_BROWSER === 'chrome') { + if ( + process.env.SELENIUM_BROWSER === 'chrome' && + process.env.CI === 'true' + ) { await ensureXServerIsRunning(); } const result = await buildWebDriver();