Keep research search recoverable and isolate browser checks [skip ci]

This commit is contained in:
2026-11-07 15:51:12 +08:00
parent 4478750909
commit d527d059eb
14 changed files with 189 additions and 46 deletions
+10 -3
View File
@@ -1,7 +1,7 @@
import { defineConfig } from "@playwright/test";
// Use an already running, explicitly authorized dev server. This configuration
// never runs `next build`, starts CI, or accesses a personal Chrome profile.
// Disposable sample-mode dev copy. Never reads the preview .env, stops its
// server, runs next build/CI, or accesses a personal Chrome profile.
export default defineConfig({
testDir: "./tests/e2e",
workers: 1,
@@ -10,7 +10,7 @@ export default defineConfig({
expect: { timeout: 10000 },
reporter: "list",
use: {
baseURL: "http://localhost:17322",
baseURL: "http://localhost:17323",
channel: "chrome",
headless: true,
launchOptions: { args: ["--no-proxy-server"] },
@@ -18,6 +18,13 @@ export default defineConfig({
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
webServer: {
command: "THESISLY_PAPER_MODE=sample node tests/fixtures/session-app.mjs",
url: "http://localhost:17323/login",
reuseExistingServer: false,
timeout: 120000,
gracefulShutdown: { signal: "SIGTERM", timeout: 15000 },
},
projects: [
{ name: "desktop", use: { viewport: { width: 1440, height: 1000 } } },
{ name: "mobile", use: { viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true } },