From 82da43d167462bc36c5e94e4a99dca12ea15d08b Mon Sep 17 00:00:00 2001 From: edison Date: Fri, 17 Jan 2025 09:26:12 +0800 Subject: [PATCH] fix(test): use LaunchOptions instead of PuppeteerLaunchOptions (#12734) ref puppeteer/puppeteer#13426 --- packages/vue/__tests__/e2e/e2eUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue/__tests__/e2e/e2eUtils.ts b/packages/vue/__tests__/e2e/e2eUtils.ts index 8a63e0a3530..1ed5322d1f0 100644 --- a/packages/vue/__tests__/e2e/e2eUtils.ts +++ b/packages/vue/__tests__/e2e/e2eUtils.ts @@ -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, }