fix(test): use LaunchOptions instead of PuppeteerLaunchOptions (#12734)

ref puppeteer/puppeteer#13426
This commit is contained in:
edison 2025-01-17 09:26:12 +08:00 committed by GitHub
parent 2e6ec39811
commit 82da43d167
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
import puppeteer, {
type Browser,
type ClickOptions,
type LaunchOptions,
type Page,
type PuppeteerLaunchOptions,
} from 'puppeteer'
export const E2E_TIMEOUT: number = 30 * 1000
const puppeteerOptions: PuppeteerLaunchOptions = {
const puppeteerOptions: LaunchOptions = {
args: process.env.CI ? ['--no-sandbox', '--disable-setuid-sandbox'] : [],
headless: true,
}