fix: ignore Device related JS errors (ie, camera recorder)

This commit is contained in:
ShareVB 2024-06-09 12:32:10 +02:00
parent 601673d095
commit 48df524f85

View File

@ -18,6 +18,10 @@ test.describe('IT Tool', () => {
const errors: Array<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);
});