Skip to content

Commit

Permalink
Merge pull request #1964 from mxschmitt/patch-2
Browse files Browse the repository at this point in the history
ci: fixed smoke tests by increasing timeout
  • Loading branch information
alexdima authored Sep 7, 2020
2 parents 1396f98 + 0a5bf64 commit 8eaefdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 8eaefdc

Please sign in to comment.