From 7aebf94e9654aaf83a36ea47d5d1bdb2f0c92f84 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 14 Aug 2024 15:38:07 +0200 Subject: [PATCH] test(e2e): Fix flake in default browser e2e test (#13379) relax the pageload transaction assertion. Web vitals are too flaky to hard-assert on them and they are covered in browser integration tests --- .../default-browser/tests/performance.test.ts | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/default-browser/tests/performance.test.ts b/dev-packages/e2e-tests/test-applications/default-browser/tests/performance.test.ts index 7013fb43ecef..0407d9965389 100644 --- a/dev-packages/e2e-tests/test-applications/default-browser/tests/performance.test.ts +++ b/dev-packages/e2e-tests/test-applications/default-browser/tests/performance.test.ts @@ -10,7 +10,7 @@ test('captures a pageload transaction', async ({ page }) => { const pageLoadTransaction = await transactionPromise; - expect(pageLoadTransaction).toEqual({ + expect(pageLoadTransaction).toMatchObject({ contexts: { trace: { data: expect.objectContaining({ @@ -28,32 +28,7 @@ test('captures a pageload transaction', async ({ page }) => { }, environment: 'qa', event_id: expect.stringMatching(/[a-f0-9]{32}/), - measurements: { - 'connection.rtt': { - unit: 'millisecond', - value: expect.any(Number), - }, - fcp: { - unit: 'millisecond', - value: expect.any(Number), - }, - fp: { - unit: 'millisecond', - value: expect.any(Number), - }, - lcp: { - unit: 'millisecond', - value: expect.any(Number), - }, - ttfb: { - unit: 'millisecond', - value: expect.any(Number), - }, - 'ttfb.requestTime': { - unit: 'millisecond', - value: expect.any(Number), - }, - }, + measurements: expect.any(Object), platform: 'javascript', release: 'e2e-test', request: {