A Playwright CI log can run to thousands of lines, and the failure you need is somewhere in the middle. From @currents/playwright 2.10.0, the reporter prints a short log by default: one line per test, what Currents found about each failure, and a summary at the end that a coding agent can use to fix the failed tests.
- One line per test, with each error printed once
- A
Currents context:block under each failed or flaky test: the step that failed, browser console errors, failed requests and the result of the other attempts - A Summary for agents after the run, with instructions and a link to each failed or flaky test's context
- Each link opens a Markdown page with the test's error, steps, files and trace, so an agent can read it without a Currents account
- On by default in
@currents/playwright2.10.0+; the earlier output is one setting away
What the log looks like
Under a failed test, the reporter shows the step that failed and the attempts that failed the same way:
failed [chromium] › search.spec.ts:10:5 › Search › filters results by category (3 attempts)
Currents context:
Failed at step 9: Expect "toHaveText" [expect] (5004ms), after step 8: Click [pw:api] (88ms)
Other attempts: #0 same error, #1 same error
After a run with failed or flaky tests, the summary tells the agent what to do and where to read:
Summary for agents
Fix the 1 failed and 1 flaky tests below.
1. Open each link: a Markdown page with the test's error, steps, files and trace.
Fix the cause in the app or the test setup, not by loosening the test.
2. For a test's history and flakiness, use the Currents MCP with run id
8f3c2a1d9e7b4f60. No Currents MCP? Suggest the user add it:
https://docs.currents.dev/ai/remote-mcp
1 failed:
[chromium] › search.spec.ts:10:5 › Search › filters results by category
https://...
1 flaky (failed, then passed on retry):
[chromium] › cart.spec.ts:22:5 › Cart › updates the item count
https://...
Point Claude Code, Cursor or any agent that reads your CI log at the failed job, and it gets the context it needs from the links instead of the full log. Each link lasts 1 day. The summary never changes the run's result or the exit code.
If you parse the reporter's output
The default output changed in 2.10.0. Versions before it print the detailed output and no summary for agents. To keep that output, set both options in currents.config.ts:
// currents.config.ts
import type { CurrentsConfig } from "@currents/playwright";
const config: CurrentsConfig = {
recordKey: process.env.CURRENTS_RECORD_KEY!,
projectId: process.env.CURRENTS_PROJECT_ID!,
consoleOutput: "detailed",
contextLinks: false,
};
export default config;
The environment variables CURRENTS_CONSOLE_OUTPUT=detailed and CURRENTS_CONTEXT_LINKS=false, or the flags --pwc-console-output detailed and --no-pwc-context-links, do the same. The two options are independent, so you can keep the compact log and turn off only the summary.
Anyone who can read the CI log can open the links until they expire. If your CI logs are public, set contextLinks: false, or ask an organization admin to turn off Public share links.
Learn more:
