diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index d720fc2b..58c2b54d 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -9,7 +9,6 @@ module.exports = { '--no-first-run', '--no-sandbox', '--no-zygote', - '--single-process', ], }, }; diff --git a/tests/run-tests.js b/tests/run-tests.js index 02c42b08..5735ada4 100644 --- a/tests/run-tests.js +++ b/tests/run-tests.js @@ -24,7 +24,11 @@ startServer.on('exit', () => { console.log('Starting development server for e2e tests...'); startServer.stdout.on('data', data => { console.log(data.toString()); - if (!once && data.toString().indexOf('Compiled successfully') >= 0) { + // hack code , wait umi + if ( + (!once && data.toString().indexOf('Compiled successfully') >= 0) || + data.toString().indexOf('Theme generated successfully') >= 0 + ) { // eslint-disable-next-line once = true; console.log('Development server is started, ready to run tests.');