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 request: Group events in timeline #85

Open
schultek opened this issue Dec 17, 2024 · 2 comments
Open

Feature request: Group events in timeline #85

schultek opened this issue Dec 17, 2024 · 2 comments
Labels

Comments

@schultek
Copy link
Contributor

With larger user flows the timeline can get pretty long.

I'd like a way to group timeline entries, which in the html could be displayed as an expandable section.

The api could be something like:

timeline.startGroup("Group Title");

/* doing normal testing */

timeline.endGroup();
@passsy
Copy link
Owner

passsy commented Dec 17, 2024

Alternative: Group by call stack. We already know where timline each entry was added. We could automatically group the entries based on the depth of the callstack starting form the test itself.

Ideally, I'd show the actual code in the timeline where you can drill into and see the before/after for each line

@schultek
Copy link
Contributor Author

I do think manually grouping is more desirable in most cases. I also don't want too much grouping, because then you can easily end up with highly nested groups which then has no benefit over no nesting at all.

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

No branches or pull requests

2 participants