From 48df524f85b8fd8449447e56cc791fc73857332b Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sun, 9 Jun 2024 12:32:10 +0200 Subject: [PATCH] fix: ignore Device related JS errors (ie, camera recorder) --- src/tools/all-tools.e2e.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/all-tools.e2e.spec.ts b/src/tools/all-tools.e2e.spec.ts index f0c28ff7..61140797 100644 --- a/src/tools/all-tools.e2e.spec.ts +++ b/src/tools/all-tools.e2e.spec.ts @@ -18,6 +18,10 @@ test.describe('IT Tool', () => { const errors: Array = []; page.on('pageerror', (error) => { + // ignore errors related to physical devices (ie camera recorder) + if (error.message.match(/Requested device not found/)) { + return; + } errors.push(error); });