refactor(e2e): removed animations and transitios for the e2e tests

This commit is contained in:
Carlos Jimenez Ruiz 2021-10-18 16:09:07 +02:00
parent 44f174103c
commit e6899d50c3
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,13 @@ export async function getBrowser() {
}); });
page = extendPage(page); page = extendPage(page);
page.setDefaultTimeout(5000); page.setDefaultTimeout(5000);
await page.addStyleTag({
content: `* {
transition: none!important;
animation: none!important;
}`
});
await page.goto(defaultURL, {waitUntil: 'load'}); await page.goto(defaultURL, {waitUntil: 'load'});
return {page, close: browser.close.bind(browser)}; return {page, close: browser.close.bind(browser)};
} }