Skip to content

feat: add slow-motion support to ease debugging#230

Open
pelmered wants to merge 1 commit into
pestphp:4.xfrom
pelmered:feat/slow-mo
Open

feat: add slow-motion support to ease debugging#230
pelmered wants to merge 1 commit into
pestphp:4.xfrom
pelmered:feat/slow-mo

Conversation

@pelmered

@pelmered pelmered commented Jun 26, 2026

Copy link
Copy Markdown

Why / Background

When you run the browser tests with --debug it goes a bit too fast for you to really see what is going on or where things break. Playwright supports this with their --slow-mo option that adds a delay between each action so that you can follow what is happening in the browser. There is no way to pass that down to playwright through this plugin, and that is what this PR adds.

What

Adds an optional delay before each browser action, mapped to Playwright's slowMo launch option:

  • CLI: --slow-mo (defaults to 500ms) or --slow-mo <ms> for an explicit delay
  • Config: pest()->browser()->slowMo() / ->slowMo($ms)

slowMo defaults to 0 (no delay), so the launch options are unchanged when unused.

Adds an optional delay before each browser action, mapped to Playwright's
slowMo launch option:

- CLI: `--slow-mo` (defaults to 500ms) or `--slow-mo <ms>` for an explicit delay
- Config: `pest()->browser()->slowMo()` / `->slowMo($ms)`

slowMo defaults to 0 (no delay), so the launch options are unchanged when unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant