未验证 提交 da173d60 编写于 作者: 陈帅 提交者: GitHub

try fix test error (#3424)

* try fix test error

* try fix ci error in windows
上级 19eac941
......@@ -9,7 +9,6 @@ module.exports = {
'--no-first-run',
'--no-sandbox',
'--no-zygote',
'--single-process',
],
},
};
......@@ -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.');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册