File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
packages/integration-tests/suites/replay/errors Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ sentryTest(
72
72
// The first event should have both, full and incremental snapshots,
73
73
// as we recorded and kept all events in the buffer
74
74
expect ( content0 . fullSnapshots ) . toHaveLength ( 1 ) ;
75
- expect ( content0 . incrementalSnapshots ) . toHaveLength ( 10 ) ;
75
+ // We don't know how many incremental snapshots we'll have (also browser-dependent),
76
+ // but we know that we have at least 5
77
+ expect ( content0 . incrementalSnapshots . length ) . toBeGreaterThan ( 5 ) ;
76
78
// We want to make sure that the event that triggered the error was recorded.
77
79
expect ( content0 . breadcrumbs ) . toEqual (
78
80
expect . arrayContaining ( [
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ sentryTest(
29
29
30
30
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
31
31
const event = envelopeRequestParser ( route . request ( ) ) ;
32
- // error event have no type field
32
+ // error events have no type field
33
33
if ( event && ! event . type && event . event_id ) {
34
34
errorEventId = event . event_id ;
35
35
}
@@ -81,7 +81,9 @@ sentryTest(
81
81
// The first event should have both, full and incremental snapshots,
82
82
// as we recorded and kept all events in the buffer
83
83
expect ( content0 . fullSnapshots ) . toHaveLength ( 1 ) ;
84
- expect ( content0 . incrementalSnapshots ) . toHaveLength ( 10 ) ;
84
+ // We don't know how many incremental snapshots we'll have (also browser-dependent),
85
+ // but we know that we have at least 5
86
+ expect ( content0 . incrementalSnapshots . length ) . toBeGreaterThan ( 5 ) ;
85
87
// We want to make sure that the event that triggered the error was recorded.
86
88
expect ( content0 . breadcrumbs ) . toEqual (
87
89
expect . arrayContaining ( [
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ sentryTest(
24
24
25
25
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
26
26
const event = envelopeRequestParser ( route . request ( ) ) ;
27
- // error event have no type field
27
+ // error events have no type field
28
28
if ( event && ! event . type && event . event_id ) {
29
29
errorEventId = event . event_id ;
30
30
}
You can’t perform that action at this time.
0 commit comments