Skip to content

Commit 48df524

Browse files
committed
fix: ignore Device related JS errors (ie, camera recorder)
1 parent 601673d commit 48df524

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/all-tools.e2e.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ test.describe('IT Tool', () => {
1818
const errors: Array<Error> = [];
1919

2020
page.on('pageerror', (error) => {
21+
// ignore errors related to physical devices (ie camera recorder)
22+
if (error.message.match(/Requested device not found/)) {
23+
return;
24+
}
2125
errors.push(error);
2226
});
2327

0 commit comments

Comments
 (0)