mirror of https://github.com/vuejs/core.git
fix(test): use LaunchOptions instead of PuppeteerLaunchOptions (#12734)
ref puppeteer/puppeteer#13426
This commit is contained in:
parent
2e6ec39811
commit
82da43d167
|
@ -1,13 +1,13 @@
|
||||||
import puppeteer, {
|
import puppeteer, {
|
||||||
type Browser,
|
type Browser,
|
||||||
type ClickOptions,
|
type ClickOptions,
|
||||||
|
type LaunchOptions,
|
||||||
type Page,
|
type Page,
|
||||||
type PuppeteerLaunchOptions,
|
|
||||||
} from 'puppeteer'
|
} from 'puppeteer'
|
||||||
|
|
||||||
export const E2E_TIMEOUT: number = 30 * 1000
|
export const E2E_TIMEOUT: number = 30 * 1000
|
||||||
|
|
||||||
const puppeteerOptions: PuppeteerLaunchOptions = {
|
const puppeteerOptions: LaunchOptions = {
|
||||||
args: process.env.CI ? ['--no-sandbox', '--disable-setuid-sandbox'] : [],
|
args: process.env.CI ? ['--no-sandbox', '--disable-setuid-sandbox'] : [],
|
||||||
headless: true,
|
headless: true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue