Skip to content

Commit

Permalink
Define Trace interface
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Sep 20, 2023
1 parent 1b00741 commit 693caec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/e2e-test-utils-playwright/src/metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ interface TraceEvent {
};
}

interface Trace {
traceEvents: TraceEvent[];
}

interface LoadingDurations {
serverResponse: number;
firstPaint: number;
Expand All @@ -40,7 +44,7 @@ type MetricsConstructorProps = {
export class Metrics {
browser: Browser;
page: Page;
trace: { traceEvents: TraceEvent[] };
trace: Trace;

constructor( { page }: MetricsConstructorProps ) {
this.page = page;
Expand Down

0 comments on commit 693caec

Please sign in to comment.