diff --git a/packages/e2e-test-utils-playwright/src/metrics/index.ts b/packages/e2e-test-utils-playwright/src/metrics/index.ts index a00748d02bd8d6..a2ce9830a199f3 100644 --- a/packages/e2e-test-utils-playwright/src/metrics/index.ts +++ b/packages/e2e-test-utils-playwright/src/metrics/index.ts @@ -161,11 +161,11 @@ export class Metrics { const firstPaintStartTime = paintTimings.find( ( { name } ) => name === 'first-paint' - )?.startTime as number; + )!.startTime; const firstContentfulPaintStartTime = paintTimings.find( ( { name } ) => name === 'first-contentful-paint' - )?.startTime as number; + )!.startTime; return { // Server side metric.