fix(GOV-009): 消除前端运行时模板警告
This commit is contained in:
@@ -4,7 +4,9 @@ test('应用外壳在桌面和移动视口均可正常呈现', async ({ page })
|
||||
const runtimeErrors: string[] = [];
|
||||
|
||||
page.on('console', (message) => {
|
||||
if (message.type() === 'error') runtimeErrors.push(message.text());
|
||||
if (message.type() === 'error' || message.type() === 'warning') {
|
||||
runtimeErrors.push(message.text());
|
||||
}
|
||||
});
|
||||
page.on('pageerror', (error) => runtimeErrors.push(error.message));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user