Increase timeouts

This commit is contained in:
Alexandru Dima 2020-12-30 14:15:14 +01:00
parent 5cc0aa2849
commit 689fbbd960
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -18,7 +18,7 @@ type BrowserType = 'chromium' | 'firefox' | 'webkit';
const browserType: BrowserType = process.env.BROWSER as BrowserType || 'chromium';
before(async function () {
this.timeout(5 * 1000);
this.timeout(20 * 1000);
console.log(`Starting browser: ${browserType}`);
browser = await playwright[browserType].launch({
headless: process.argv.includes('--headless'),
@ -26,12 +26,12 @@ before(async function () {
});
after(async function () {
this.timeout(5 * 1000);
this.timeout(20 * 1000);
await browser.close();
});
beforeEach(async function () {
this.timeout(5 * 1000);
this.timeout(20 * 1000);
page = await browser.newPage({
viewport: {
width: 800,