Skip to content

Commit 7aebf94

Browse files
authored
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
1 parent f790f05 commit 7aebf94

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

dev-packages/e2e-tests/test-applications/default-browser/tests/performance.test.ts

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('captures a pageload transaction', async ({ page }) => {
1010

1111
const pageLoadTransaction = await transactionPromise;
1212

13-
expect(pageLoadTransaction).toEqual({
13+
expect(pageLoadTransaction).toMatchObject({
1414
contexts: {
1515
trace: {
1616
data: expect.objectContaining({
@@ -28,32 +28,7 @@ test('captures a pageload transaction', async ({ page }) => {
2828
},
2929
environment: 'qa',
3030
event_id: expect.stringMatching(/[a-f0-9]{32}/),
31-
measurements: {
32-
'connection.rtt': {
33-
unit: 'millisecond',
34-
value: expect.any(Number),
35-
},
36-
fcp: {
37-
unit: 'millisecond',
38-
value: expect.any(Number),
39-
},
40-
fp: {
41-
unit: 'millisecond',
42-
value: expect.any(Number),
43-
},
44-
lcp: {
45-
unit: 'millisecond',
46-
value: expect.any(Number),
47-
},
48-
ttfb: {
49-
unit: 'millisecond',
50-
value: expect.any(Number),
51-
},
52-
'ttfb.requestTime': {
53-
unit: 'millisecond',
54-
value: expect.any(Number),
55-
},
56-
},
31+
measurements: expect.any(Object),
5732
platform: 'javascript',
5833
release: 'e2e-test',
5934
request: {

0 commit comments

Comments
 (0)