spot icon indicating copy to clipboard operation
spot copied to clipboard

Feature request: Group events in timeline

Open schultek opened this issue 1 year ago • 2 comments

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();

schultek avatar Dec 17 '24 14:12 schultek

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

passsy avatar Dec 17 '24 15:12 passsy

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.

schultek avatar Dec 19 '24 11:12 schultek