File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/browser-integration-tests/suites/replay/largeMutations Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ sentryTest(
11
11
}
12
12
13
13
const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
14
+ const reqPromise0b = waitForReplayRequest ( page , 1 ) ;
14
15
15
16
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
16
17
return route . fulfill ( {
@@ -23,7 +24,10 @@ sentryTest(
23
24
const url = await getLocalTestPath ( { testDir : __dirname } ) ;
24
25
25
26
await page . goto ( url ) ;
27
+ await forceFlushReplay ( ) ;
26
28
const res0 = await reqPromise0 ;
29
+ await reqPromise0b ;
30
+ // A second request is sent right after initial snapshot, we want to wait for that to settle before we continue
27
31
28
32
const reqPromise1 = waitForReplayRequest ( page ) ;
29
33
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ sentryTest(
11
11
}
12
12
13
13
const reqPromise0 = waitForReplayRequest ( page , 0 ) ;
14
+ const reqPromise0b = waitForReplayRequest ( page , 1 ) ;
14
15
15
16
await page . route ( 'https://dsn.ingest.sentry.io/**/*' , route => {
16
17
return route . fulfill ( {
@@ -24,6 +25,8 @@ sentryTest(
24
25
25
26
await page . goto ( url ) ;
26
27
const res0 = await reqPromise0 ;
28
+ await reqPromise0b ;
29
+ // A second request is sent right after initial snapshot, we want to wait for that to settle before we continue
27
30
28
31
const reqPromise1 = waitForReplayRequest ( page ) ;
29
32
You can’t perform that action at this time.
0 commit comments