File tree Expand file tree Collapse file tree 9 files changed +11
-17
lines changed
packages/browser-integration-tests/suites/replay
captureReplayFromReplayPackage Expand file tree Collapse file tree 9 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { SDK_VERSION } from '@sentry/browser';
4
4
import { sentryTest } from '../../../utils/fixtures' ;
5
5
import { getReplayEvent , shouldSkipReplayTest , waitForReplayRequest } from '../../../utils/replayHelpers' ;
6
6
7
- sentryTest ( 'should capture replays' , async ( { getLocalTestPath, page } ) => {
7
+ sentryTest ( 'should capture replays (@sentry/browser export) ' , async ( { getLocalTestPath, page } ) => {
8
8
if ( shouldSkipReplayTest ( ) ) {
9
9
sentryTest . skip ( ) ;
10
10
}
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
+ import { Replay } from '@sentry/replay' ;
2
3
3
4
window . Sentry = Sentry ;
4
- window . Replay = new Sentry . Replay ( {
5
+ window . Replay = new Replay ( {
5
6
flushMinDelay : 200 ,
6
7
flushMaxDelay : 200 ,
7
8
} ) ;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ import { expect } from '@playwright/test';
2
2
import { SDK_VERSION } from '@sentry/browser' ;
3
3
4
4
import { sentryTest } from '../../../utils/fixtures' ;
5
- import { getReplayEvent , waitForReplayRequest } from '../../../utils/replayHelpers' ;
5
+ import { getReplayEvent , shouldSkipReplayTest , waitForReplayRequest } from '../../../utils/replayHelpers' ;
6
6
7
- sentryTest ( 'should capture replays (@sentry/browser export)' , async ( { getLocalTestPath, page } ) => {
8
- // For this test, we skip all bundle tests, as we're only interested in Replay being correctly
9
- // exported from the `@sentry/browser` npm package.
10
- if ( process . env . PW_BUNDLE && process . env . PW_BUNDLE . startsWith ( 'bundle_' ) ) {
7
+ sentryTest ( 'should capture replays (@sentry/replay export)' , async ( { getLocalTestPath, page } ) => {
8
+ if ( shouldSkipReplayTest ( ) ) {
11
9
sentryTest . skip ( ) ;
12
10
}
13
11
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
- import { Replay } from '@sentry/replay' ;
3
2
4
3
window . Sentry = Sentry ;
5
- window . Replay = new Replay ( {
4
+ window . Replay = new Sentry . Replay ( {
6
5
flushMinDelay : 200 ,
7
6
flushMaxDelay : 200 ,
8
7
useCompression : false ,
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
- import { Replay } from '@sentry/replay' ;
3
2
4
3
window . Sentry = Sentry ;
5
- window . Replay = new Replay ( {
4
+ window . Replay = new Sentry . Replay ( {
6
5
flushMinDelay : 200 ,
7
6
flushMaxDelay : 200 ,
8
7
useCompression : false ,
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
- import { Replay } from '@sentry/replay' ;
3
2
4
3
window . Sentry = Sentry ;
5
- window . Replay = new Replay ( {
4
+ window . Replay = new Sentry . Replay ( {
6
5
flushMinDelay : 200 ,
7
6
flushMaxDelay : 200 ,
8
7
useCompression : false ,
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
- import { Replay } from '@sentry/replay' ;
3
2
4
3
window . Sentry = Sentry ;
5
- window . Replay = new Replay ( {
4
+ window . Replay = new Sentry . Replay ( {
6
5
flushMinDelay : 200 ,
7
6
flushMaxDelay : 200 ,
8
7
useCompression : false ,
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
- import { Replay } from '@sentry/replay' ;
3
2
4
3
window . Sentry = Sentry ;
5
- window . Replay = new Replay ( {
4
+ window . Replay = new Sentry . Replay ( {
6
5
flushMinDelay : 200 ,
7
6
flushMaxDelay : 200 ,
8
7
useCompression : false ,
You can’t perform that action at this time.
0 commit comments