Open
Description
openedon Oct 27, 2023
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:
- It can't generate new tests inside of a suite. It can only start at a test that has already executed
- It has weird issues attaching to the browser at the right point after the test setups have completed
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment