mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Merge pull request #1964 from mxschmitt/patch-2
ci: fixed smoke tests by increasing timeout
This commit is contained in:
commit
8eaefdcbad
1 changed files with 4 additions and 2 deletions
|
|
@ -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 () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue