Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Re-work how jestPlaywright.debug() works under the hood (or remove it completely?) #608

@thernstig

Description

@thernstig

Is your feature request related to a problem? Please describe.
Playwright supports debugging out of the box. E.g. one can use page.pause() to stop execution in a script (if running in headed/headful mode). In addition, one can set PWDEBUG=1 which will automatically set Playwright to use headful mode as well as disable all timeouts.

jestPlaywright.debug() is a current, hacky solution that came with jest-puppeteer. It would be good if it is re-worked instead to work better with Playwright's debugging tools/options (and Jest's as well, where applicable).

Describe the solution you'd like
I will leave this to your discretion. But setting PWDEBUG=1 could probably be the way for jest-playwright to also set all its debug?

Describe alternatives you've considered
No idea.

Additional context
Check comments at #596 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions