mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00
fix: ignore Device related JS errors (ie, camera recorder)
This commit is contained in:
parent
601673d095
commit
48df524f85
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ test.describe('IT Tool', () => {
|
||||||
const errors: Array<Error> = [];
|
const errors: Array<Error> = [];
|
||||||
|
|
||||||
page.on('pageerror', (error) => {
|
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);
|
errors.push(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue