Skip to content

[Feature] Record new tests or commands from within specific test suite #27842

Open

Description

I would like to be able to start recording a new test from within a specific test suite, similar to Cypress' experimentalStudio features

This test would start recording after the setup dependencies and beforeEach methods have executed.

I understand that there is a "Record at Cursor" inside of VS Code but this has a few issues:

  1. It can't generate new tests inside of a suite. It can only start at a test that has already executed
  2. It has weird issues attaching to the browser at the right point after the test setups have completed
  3. Sometimes VS Code can't correctly detect when new tests have been written and doesn't offer the Play button for them

It would also be good to similarly have buttons for this in the Playwright UI specifically. Below is how Cypress' studio added it and I think this would be an excellent UX / DX improvement. When you click these, it automatically brings the test suite to the exact point you'd want to start recording (either by adding a new test in the suite, or adding new commands to an existing individual test in the suite)

Screenshot 2023-10-27 at 11 51 45 AM Screenshot 2023-10-27 at 11 52 14 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions