playwright-vscode
playwright-vscode copied to clipboard
feature(trace-viewer): embedded mode support PoC
PoC of trace-viewer embedded in VSCode.
It allows to open trace zip files as well as live traces of running tests.
https://github.com/microsoft/playwright-vscode/assets/1374559/e21cb7d6-8406-45ee-9de8-431b240e0ebb
Depends on https://github.com/microsoft/playwright/pull/30885
I'm supportive for those, let me know when they are no longer drafts!
It now supports toggle between dark / light theme:
https://github.com/microsoft/playwright-vscode/assets/1374559/fa6ec224-04a3-4944-9487-d13f99dc8c6a
I added a few tests. They require a playwright version with changes from https://github.com/microsoft/playwright/pull/30885 , and that's why I left them as wip for now.
It's now working with vscode SSH remote dev and dev containers.
One nice thing is that there's no need to expose playwright server as 0.0.0.0 because trace viewer is opened by vscode and therefore we can take advantage of vscode.env.asExternalUri to perform a localhost port forwarding.
It also works in codespaces:
https://github.com/microsoft/playwright-vscode/assets/1374559/13480576-4908-4de8-961a-ccef90198ca5