Skip to content

Commit 65b84fe

Browse files
committed
commit all test fixes and lint
1 parent 477f926 commit 65b84fe

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
expectedFIDPerformanceSpan,
99
expectedFPPerformanceSpan,
1010
expectedLCPPerformanceSpan,
11-
expectedTTFBPerformanceSpan,
1211
expectedMemoryPerformanceSpan,
1312
expectedNavigationPerformanceSpan,
13+
expectedTTFBPerformanceSpan,
1414
getExpectedReplayEvent,
1515
} from '../../../utils/replayEventTemplates';
1616
import type { PerformanceSpan } from '../../../utils/replayHelpers';

dev-packages/browser-integration-tests/suites/replay/multiple-pages/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
expectedFIDPerformanceSpan,
99
expectedFPPerformanceSpan,
1010
expectedLCPPerformanceSpan,
11-
expectedTTFBPerformanceSpan,
1211
expectedMemoryPerformanceSpan,
1312
expectedNavigationBreadcrumb,
1413
expectedNavigationPerformanceSpan,
1514
expectedNavigationPushPerformanceSpan,
1615
expectedReloadPerformanceSpan,
16+
expectedTTFBPerformanceSpan,
1717
getExpectedReplayEvent,
1818
} from '../../../utils/replayEventTemplates';
1919
import {
@@ -81,7 +81,7 @@ sentryTest(
8181
const collectedPerformanceSpans = [...recording0.performanceSpans, ...recording1.performanceSpans];
8282
const collectedBreadcrumbs = [...recording0.breadcrumbs, ...recording1.breadcrumbs];
8383

84-
expect(collectedPerformanceSpans.length).toEqual(8);
84+
expect(collectedPerformanceSpans.length).toEqual(9);
8585
expect(collectedPerformanceSpans).toEqual(
8686
expect.arrayContaining([
8787
expectedNavigationPerformanceSpan,
@@ -122,7 +122,7 @@ sentryTest(
122122
const collectedPerformanceSpansAfterReload = [...recording2.performanceSpans, ...recording3.performanceSpans];
123123
const collectedBreadcrumbsAdterReload = [...recording2.breadcrumbs, ...recording3.breadcrumbs];
124124

125-
expect(collectedPerformanceSpansAfterReload.length).toEqual(8);
125+
expect(collectedPerformanceSpansAfterReload.length).toEqual(9);
126126
expect(collectedPerformanceSpansAfterReload).toEqual(
127127
expect.arrayContaining([
128128
expectedReloadPerformanceSpan,
@@ -316,7 +316,7 @@ sentryTest(
316316
];
317317
const collectedBreadcrumbsAfterIndexNavigation = [...recording8.breadcrumbs, ...recording9.breadcrumbs];
318318

319-
expect(collectedPerformanceSpansAfterIndexNavigation.length).toEqual(8);
319+
expect(collectedPerformanceSpansAfterIndexNavigation.length).toEqual(9);
320320
expect(collectedPerformanceSpansAfterIndexNavigation).toEqual(
321321
expect.arrayContaining([
322322
expectedNavigationPerformanceSpan,

dev-packages/e2e-tests/test-applications/react-send-to-sentry/tests/fixtures/ReplayRecordingData.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ export const ReplayRecordingData = [
213213
tag: 'performanceSpan',
214214
payload: {
215215
op: 'web-vital',
216-
description: 'largest-contentful-paint',
216+
description: 'time-to-first-byte',
217217
startTimestamp: expect.any(Number),
218218
endTimestamp: expect.any(Number),
219219
data: {
220220
value: expect.any(Number),
221221
size: expect.any(Number),
222222
rating: expect.any(String),
223-
nodeId: [16],
223+
nodeId: [],
224224
},
225225
},
226226
},
@@ -232,14 +232,14 @@ export const ReplayRecordingData = [
232232
tag: 'performanceSpan',
233233
payload: {
234234
op: 'web-vital',
235-
description: 'time-to-first-byte',
235+
description: 'largest-contentful-paint',
236236
startTimestamp: expect.any(Number),
237237
endTimestamp: expect.any(Number),
238238
data: {
239239
value: expect.any(Number),
240240
size: expect.any(Number),
241241
rating: expect.any(String),
242-
nodeId: [],
242+
nodeId: [16],
243243
},
244244
},
245245
},

packages/replay-internal/src/util/createPerformanceEntries.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ export function getCumulativeLayoutShift(metric: Metric): ReplayPerformanceEntry
200200
if (source.node) {
201201
nodes.push(source.node);
202202
}
203-
204203
}
205204
}
206205
return getWebVital(metric, 'cumulative-layout-shift', nodes);

0 commit comments

Comments
 (0)