Skip to content

The Unified and Autonomous Development Platform

chore: Update Playwright configuration and README for server stdout logging

Robin Shen8b64b0a96529
diff --git a/e2e-test/README.md b/e2e-test/README.md
index 4a9324cfde..f29a9276e5 100644
--- a/e2e-test/README.md
+++ b/e2e-test/README.md
@@ -25,6 +25,15 @@ By default Playwright starts `./dev.sh run` from the repository root and waits
up to ten minutes for `http://127.0.0.1:6610`. If a server is already listening
there, Playwright reuses it.
+Server stdout is hidden by default, including the stack traces deliberately
+triggered by Jev failure tests. Server stderr and test failures remain visible.
+Full application logs remain in `server-product/target/sandbox/logs/server.log`.
+To show server stdout when Playwright starts the server, run:
+
+```bash
+E2E_SERVER_STDOUT=1 npm test
+```
+
Before running tests, each worker polls `~api/server/ready` without
authentication until it returns `true`, allowing up to ten minutes for server
initialization to finish.
diff --git a/e2e-test/playwright.config.js b/e2e-test/playwright.config.js
index 68cef831ad..390a3118d6 100644
--- a/e2e-test/playwright.config.js
+++ b/e2e-test/playwright.config.js
@@ -53,7 +53,8 @@ export default defineConfig({
url: baseURL,
reuseExistingServer: true,
timeout: 10 * 60 * 1000,
- stdout: 'pipe',
+ // Expected failure tests log server-side stack traces. Opt in when debugging.
+ stdout: process.env.E2E_SERVER_STDOUT === '1' ? 'pipe' : 'ignore',
stderr: 'pipe',
// Unattended first-run setup; see https://docs.onedev.io/installation-guide/run-as-docker-container
env: {