diff --git a/adminfront/playwright.config.ts b/adminfront/playwright.config.ts index d4a99e1a..9fd0d7fc 100644 --- a/adminfront/playwright.config.ts +++ b/adminfront/playwright.config.ts @@ -85,10 +85,10 @@ export default defineConfig({ ? undefined : { command: process.env.CI - ? `pnpm run build && pnpm run preview -- --host 127.0.0.1 --port ${port}` - : `pnpm run dev -- --host 127.0.0.1 --port ${port}`, - url: defaultBaseUrl, + ? `pnpm run preview -- --host localhost --port ${port} > preview.log 2>&1` + : `pnpm run dev -- --host localhost --port ${port}`, + url: `http://localhost:${port}`, reuseExistingServer, - timeout: 120 * 1000, + timeout: 180 * 1000, }, });