Skip to content

Commit

Permalink
test(e2e): Fix flake in default browser e2e test (#13379)
Browse files Browse the repository at this point in the history
relax the pageload transaction assertion. Web vitals are too
flaky to hard-assert on them and they are covered in browser integration
tests
  • Loading branch information
Lms24 authored Aug 14, 2024
1 parent f790f05 commit 7aebf94
Showing 1 changed file with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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: {
Expand Down

0 comments on commit 7aebf94

Please sign in to comment.