Skip to content

Commit 05471e3

Browse files
committed
feat: testtool - show AB-Session in Timeline
1 parent 955d96e commit 05471e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/webui/src/client/ui/TestTools/Timeline.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ function renderTimelineState(state: TimelineState, filter: RegExp | string | und
258258
<td>{(o.classes ?? []).join('<br />')}</td>
259259
<td style={{ whiteSpace: 'pre' }}>
260260
<pre>{JSON.stringify(o.content, undefined, '\t')}</pre>
261+
<pre>
262+
{
263+
//@ts-expect-error - abSessions is not in the type but are still in the object if used:
264+
o.abSessions && 'AB-Sessions:' + '\n' + JSON.stringify(o.abSessions, undefined, '\t')
265+
}
266+
</pre>
261267
</td>
262268
</tr>
263269
))

0 commit comments

Comments
 (0)