-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Trace viewer as a visual test runner #19967
Comments
Hey @AlexKomanov! We recently launched the "show browser mode" in VSCode extension that makes experience resemble Cypress. You can always pop the DevTools open and inspect the browser at any moment. Together with the "record at cursor", this makes a powerful combo to author & debug tests! What exactly are you missing in the experience? |
@aslushnikov After rewatching the videos - it looks like I can point to only two possible missing functions (from my side):
Thanks again for your response and for the whole work that the PW team does for our community! |
@AlexKomanov there's a separate issue to track this - #7035. However, these days you can use shortcuts to re-run last test: https://www.youtube.com/watch?v=VbVlz61VtNo&t=21s Would this work?
Isn't "show browser mode" solving this? |
@aslushnikov
Not exactly. In this case you need to navigate between two separate windows. If to give an example of Cypressimplementation - their runner presents the test and the code in the window. If it will be possible to provide a similar solution from your side - I think that it will be great! |
@AlexKomanov Thank you for the input! Please feel free to upvote the watch mode issue to stay in the loop.
Ah I see, thank you for the explanation. For now I don't see us implementing this any time soon; in the meantime, we'd recommend using window layout managers to arrange browser and VSCode window side-by-side. |
@AlexKomanov I brought this up on the team meeting and we have a few more clarification questions for you.
Could you please clarify - which test and in which browser (project) would you like us to run?
Should this code be in a form of a source code and be editable, or should it be a read-only list of steps? Would you consider it all to be inside VSCode? |
@aslushnikov
In my vision it should like work something like this:
Based on Cypress test runner - the section that I talked about is just providing information about performed steps: Regarding the location of this, even if it will be inside the VSCode extension - it can be great! But in this case, maybe WebStorm users will feel cheated. |
@aslushnikov Thanks! |
@AlexKomanov Hey Alex! We saw your response, discussed it and it got us thinking. However, there's no immediate action we're planning to do so far, so I'll keep this closed! Thank you for the input! |
@aslushnikov |
Hi there!
I would like to ask for a feature like the Cypress framework provides.
Cypress users have a really cool test runner that provides a lot of information through the test execution.
Playwright provides a really helpful trace viewer in order to handle a lot of useful information. Maybe it can be useful to get a combination of a test runner with a trace viewer? In this case - we can execute and gather information in one window.
I see it like a flag that can be activated with the test command like
npx playwright test --test-viewer
or something similar.Thanks for spending time on our feature requests!
The text was updated successfully, but these errors were encountered: