Keep research search recoverable and isolate browser checks [skip ci]
This commit is contained in:
+10
-3
@@ -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 } },
|
||||
|
||||
Reference in New Issue
Block a user