[Feature] VSCode: Open trace viewer from test explorer
Context:
- Playwright Version: 1.30.0
- Operating System: macos
- Node.js version: 18
- Visual Studio Code version: 1.75.1
- Playwright for VSCode extension version: v1.0.7
- Browser: All
- Extra:
Describe the feature
After running tests in VS Code, and seeing the result in the Test Explorer, I would like to click on a test failure and open the trace viewer for this test.
Not exactly what you're asking for, but in the meantime, this extension allows you to right-click open the trace file right from the File Explorer.
https://marketplace.visualstudio.com/items?itemName=ryanrosello-og.playwright-vscode-trace-viewer&ssr=false#overview
In order for us to prioritise this - what is the workflow that you end up in a scenario like that?
There is a "show trace viewer" button inside the Test Explorer at the bottom which will show the live trace during a test run.
In my case, I would like to have trace viewer integrated into VSCode, because currently it opens a separate electron app.
I played around with this, and it doesn't seem that hard to integrate it with a WebView:
https://github.com/microsoft/playwright-vscode/pull/483