Merge pull request #1964 from mxschmitt/patch-2

ci: fixed smoke tests by increasing timeout
This commit is contained in:
Alexandru Dima 2020-09-07 13:45:22 +02:00 committed by GitHub
commit 8eaefdcbad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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