fix(trace): do not show duration tooltip for events (#21342)

Fixes https://github.com/microsoft/playwright/issues/21255
This commit is contained in:
Yury Semikhatsky 2023-03-02 11:31:10 -08:00 committed by GitHub
parent 744739a3d0
commit b00579edb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ type TimelineBar = {
rightTime: number;
type: string;
label: string;
title: string;
title: string | undefined;
className: string;
};
@ -81,7 +81,7 @@ export const Timeline: React.FunctionComponent<{
leftPosition: timeToPosition(measure.width, boundaries, startTime),
rightPosition: timeToPosition(measure.width, boundaries, startTime),
label: event.method,
title: '0',
title: undefined,
type: event.class + '.' + event.method,
className: `${event.class}_${event.method}`.toLowerCase()
});