Skip to content

Step labels and run output

While a test runs, the step that is executing right now carries a ⌛ waiting… label at the end of its line; afterwards every step line shows how long it took (2003ms, or 2003ms (ran 2×) when the line ran in two projects).

tests/slow.spec.ts during a run: the step that is executing carries a trailing "waiting" label.
While the test runs, the executing step is marked at the end of its line. (Zed 1.26.2, Playwright Runner 0.8.0, Linux (Ubuntu 26.04, GNOME))
tests/slow.spec.ts after the run: every test.step line ends with its duration in milliseconds.
After the run, every step line shows how long it took. (Zed 1.26.2, Playwright Runner 0.8.0, Linux (Ubuntu 26.04, GNOME))
  • The labels are inlay hints, so they need "inlay_hints": { "enabled": true } in your Zed settings (see Settings).
  • Step labels follow the file: an edit removes the durations of that file (their lines may have moved), the next run removes all of them, and closing and reopening an unedited file brings them back.
  • Steps inside helper files and page objects are labelled there.
  • The executing step is marked with a trailing label, not a highlighted line, because Zed has no decoration API for extensions.

Playwright: Show last run output (ctrl-. after a run) opens the complete output of the latest run in an editor tab: the command line, Playwright’s own report, everything the test printed.

Zed with the run output open in a second tab next to the spec file: the command line, the Playwright list reporter output and the summary.
"Show last run output" opens the complete output of the latest run in an editor tab. (Zed 1.26.2, Playwright Runner 0.8.0, Linux (Ubuntu 26.04, GNOME))
  • The output is written to the runs/ folder under the state directory, one file per workspace, latest run only, and opened as a normal buffer. Zed keeps the tab in sync with the file, so the next run updates it in place.
  • Put the cursor on a tests/foo.spec.ts:12:7 reference and use editor: open selected filename to jump there.
  • The same output also lands in Zed’s language server log (dev: open language server logs, pick Playwright).
  • If you want a real terminal instead of a tab, see the tasks recipe on the Help page.

Screenshots on this site show Zed 1.26.2 on Linux with Playwright Runner 0.8.0; the window chrome differs per platform.