Skip to content

Commit f06e76f

Browse files
authored
Merge pull request #1385 from bbc/upstream/show-ab-session-in-testtool-timeline
feat(Test Tools): show AB-Session in Timeline
2 parents eeff788 + 0117ef6 commit f06e76f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ 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+
{o.abSessions && <pre>{
262+
//@ts-expect-error - abSessions is not in the type but are still in the object if used:
263+
'AB-Sessions:' + '\n' + JSON.stringify(o.abSessions, undefined, '\t')
264+
}</pre>}
261265
</td>
262266
</tr>
263267
))

0 commit comments

Comments
 (0)