浏览代码

dev(e2e): Log and ignore net errors (#9559)

Bad3r 2 年之前
父节点
当前提交
a293baf5c4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      e2e-tests/fixtures.ts

+ 2 - 1
e2e-tests/fixtures.ts

@@ -27,12 +27,13 @@ const consoleLogWatcher = (msg: ConsoleMessage) => {
 
 
   // List of error messages to ignore
   // List of error messages to ignore
   const ignoreErrors = [
   const ignoreErrors = [
-    /net::ERR_CONNECTION_REFUSED/,
+    /net/,
     /^Error with Permissions-Policy header:/
     /^Error with Permissions-Policy header:/
   ];
   ];
 
 
   // If the text matches any of the ignoreErrors, return early
   // If the text matches any of the ignoreErrors, return early
   if (ignoreErrors.some(error => text.match(error))) {
   if (ignoreErrors.some(error => text.match(error))) {
+    console.log(`WARN:: ${text}\n`)
     return;
     return;
   }
   }