@@ -10,13 +10,19 @@ import {
1010 expectedNavigationPerformanceSpan ,
1111 getExpectedReplayEvent ,
1212} from '../../../utils/replayEventTemplates' ;
13- import { getCustomRecordingEvents , getReplayEvent , waitForReplayRequest } from '../../../utils/replayHelpers' ;
13+ import {
14+ getCustomRecordingEvents ,
15+ getReplayEvent ,
16+ shouldSkipReplayTest ,
17+ waitForReplayRequest ,
18+ } from '../../../utils/replayHelpers' ;
1419
1520sentryTest (
1621 'replay recording should contain default performance spans' ,
1722 async ( { getLocalTestPath, page, browserName } ) => {
18- // Replay bundles are es6 only and most performance entries are only available in chromium
19- if ( ( process . env . PW_BUNDLE && process . env . PW_BUNDLE . startsWith ( 'bundle_es5' ) ) || browserName !== 'chromium' ) {
23+ // We only test this against the NPM package and replay bundles
24+ // and only on chromium as most performance entries are only available in chromium
25+ if ( shouldSkipReplayTest ( ) || browserName !== 'chromium' ) {
2026 sentryTest . skip ( ) ;
2127 }
2228
@@ -68,8 +74,7 @@ sentryTest(
6874sentryTest (
6975 'replay recording should contain a click breadcrumb when a button is clicked' ,
7076 async ( { getLocalTestPath, page } ) => {
71- // Replay bundles are es6 only
72- if ( process . env . PW_BUNDLE && process . env . PW_BUNDLE . startsWith ( 'bundle_es5' ) ) {
77+ if ( shouldSkipReplayTest ( ) ) {
7378 sentryTest . skip ( ) ;
7479 }
7580
0 commit comments