Improving tests, WIP

This commit is contained in:
David Négrier 2021-12-03 09:28:30 +01:00
parent 9bba6069b4
commit 78ee4009c8
11 changed files with 276 additions and 25 deletions

View file

@ -3,7 +3,6 @@ const BROWSER = process.env.BROWSER || "chrome --use-fake-ui-for-media-stream --
module.exports = {
"browsers": BROWSER,
"hostname": "localhost",
//"skipJsErrors": true,
"src": "tests/",
"screenshots": {
"path": "screenshots/",
@ -12,4 +11,15 @@ module.exports = {
},
"assertionTimeout": 10000,
"selectorTimeout": 40000,
/*"skipJsErrors": true,
"clientScripts": [ { "content": `
window.addEventListener('error', function (e) {
if (e instanceof Error && e.message.includes('_jp')) {
console.log('Ignoring sockjs related error');
return;
}
throw e;
});
` } ]*/
}