Skip to content
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] ability group outputs in the trace viewer #1949

Open
scott-au opened this issue Jun 1, 2023 · 4 comments
Open

[Feature] ability group outputs in the trace viewer #1949

scott-au opened this issue Jun 1, 2023 · 4 comments

Comments

@scott-au
Copy link

scott-au commented Jun 1, 2023

the show steps/fixtures in the trace is certainly a nice feature released in 1.34 - grouping all the associated actions makes a trace file easier to go through.

is there any chance we could also have some sort of mechanism that allows us to group actions together in a similar fashion for users not using playwright test.

@DetachHead
Copy link

i looked into this and would like to have a go at implementing it. it seems straightforward, looks like trace events just need the parentId field in the metadata.

i will probably make a step context manager that works the same as the test.step method in @playwright/test

@EldoradoEU
Copy link

Any update ? I also looking for similar feature

@DetachHead
Copy link

unfortunately it turned out to be more difficult than i thought, so i went with a very hacky solution that's tied to my own project which i can't really share.

@mxschmitt would you happen to have some insight on how i could go about implementing this? do i need to expose TestInfo._addStep to python? if so, how?

@danielmhair
Copy link

danielmhair commented Apr 17, 2024

Grouping outputs is important to what I'm doing but I'm in Python, not typescript. I would love this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants