提交 55f7a0db 编写于 作者: W wangjinxin613

fix: 修复测试例因每次切换页面都触发 reLaunch 出现多个进程的问题

上级 6bafe803
......@@ -11,8 +11,7 @@ module.exports = {
'<rootDir>/pages/API/download-file/download-file.test.js',
'<rootDir>/pages/API/upload-file/upload-file.test.js',
'<rootDir>/pages/API/get-battery-info/get-battery-info.test.js',
'<rootDir>/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js',
'<rootDir>/pages/webview-screenshot/webview-screenshot.test.js'
'<rootDir>/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js'
],
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
}
......@@ -275,7 +275,6 @@ describe("shot-compare", () => {
});
beforeEach(async () => {
page = await program.reLaunch(PAGE_PATH);
await page.waitFor(500);
});
afterEach(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册