ci: fixed smoke tests by increasing timeout

pull/1964/head
Max Schmitt 2020-05-12 11:55:52 +02:00 committed by GitHub
parent 1dd0635db4
commit 0a5bf64304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -10,13 +10,15 @@ type BrowserType = "chromium" | "firefox" | "webkit"
const browserType: BrowserType = process.env.BROWSER as BrowserType || "chromium" const browserType: BrowserType = process.env.BROWSER as BrowserType || "chromium"
before(async () => { before(async function () {
this.timeout(5 * 1000);
console.log(`Starting browser: ${browserType}`) console.log(`Starting browser: ${browserType}`)
browser = await playwright[browserType].launch({ browser = await playwright[browserType].launch({
headless: process.argv.includes('--headless'), headless: process.argv.includes('--headless'),
}); });
}); });
after(async () => { after(async function () {
this.timeout(5 * 1000);
await browser.close(); await browser.close();
}); });
beforeEach(async function () { beforeEach(async function () {