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';
44import { sentryTest } from '../../../utils/fixtures' ;
55import { getReplayEvent , shouldSkipReplayTest , waitForReplayRequest } from '../../../utils/replayHelpers' ;
66
7- sentryTest ( 'should capture replays' , async ( { getLocalTestPath, page } ) => {
7+ sentryTest ( 'should capture replays (@sentry/browser export) ' , async ( { getLocalTestPath, page } ) => {
88 if ( shouldSkipReplayTest ( ) ) {
99 sentryTest . skip ( ) ;
1010 }
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2+ import { Replay } from '@sentry/replay' ;
23
34window . Sentry = Sentry ;
4- window . Replay = new Sentry . Replay ( {
5+ window . Replay = new Replay ( {
56 flushMinDelay : 200 ,
67 flushMaxDelay : 200 ,
78} ) ;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ import { expect } from '@playwright/test';
22import { SDK_VERSION } from '@sentry/browser' ;
33
44import { sentryTest } from '../../../utils/fixtures' ;
5- import { getReplayEvent , waitForReplayRequest } from '../../../utils/replayHelpers' ;
5+ import { getReplayEvent , shouldSkipReplayTest , waitForReplayRequest } from '../../../utils/replayHelpers' ;
66
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 ( ) ) {
119 sentryTest . skip ( ) ;
1210 }
1311
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2- import { Replay } from '@sentry/replay' ;
32
43window . Sentry = Sentry ;
5- window . Replay = new Replay ( {
4+ window . Replay = new Sentry . Replay ( {
65 flushMinDelay : 200 ,
76 flushMaxDelay : 200 ,
87 useCompression : false ,
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2- import { Replay } from '@sentry/replay' ;
32
43window . Sentry = Sentry ;
5- window . Replay = new Replay ( {
4+ window . Replay = new Sentry . Replay ( {
65 flushMinDelay : 200 ,
76 flushMaxDelay : 200 ,
87 useCompression : false ,
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2- import { Replay } from '@sentry/replay' ;
32
43window . Sentry = Sentry ;
5- window . Replay = new Replay ( {
4+ window . Replay = new Sentry . Replay ( {
65 flushMinDelay : 200 ,
76 flushMaxDelay : 200 ,
87 useCompression : false ,
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2- import { Replay } from '@sentry/replay' ;
32
43window . Sentry = Sentry ;
5- window . Replay = new Replay ( {
4+ window . Replay = new Sentry . Replay ( {
65 flushMinDelay : 200 ,
76 flushMaxDelay : 200 ,
87 useCompression : false ,
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
2- import { Replay } from '@sentry/replay' ;
32
43window . Sentry = Sentry ;
5- window . Replay = new Replay ( {
4+ window . Replay = new Sentry . Replay ( {
65 flushMinDelay : 200 ,
76 flushMaxDelay : 200 ,
87 useCompression : false ,
You can’t perform that action at this time.
0 commit comments