Skip to content

Commit cb19818

Browse files
authored
fix(integration-tests): Skip non-replay bundles in replay test (#7159)
1 parent 7a332e4 commit cb19818

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/integration-tests/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"test:bundle:es5:min": "PW_BUNDLE=bundle_es5_min yarn test",
2424
"test:bundle:es6": "PW_BUNDLE=bundle_es6 yarn test",
2525
"test:bundle:es6:min": "PW_BUNDLE=bundle_es6_min yarn test",
26+
"test:bundle:replay:es6": "PW_BUNDLE=bundle_replay_es6 yarn test",
27+
"test:bundle:replay:es6:min": "PW_BUNDLE=bundle_replay_es6_min yarn test",
2628
"test:cjs": "PW_BUNDLE=cjs yarn test",
2729
"test:esm": "PW_BUNDLE=esm yarn test",
2830
"test:ci": "playwright test ./suites --browser='all' --reporter='line'"

packages/integration-tests/suites/replay/privacy/test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import type { RecordingEvent } from '@sentry/replay/build/npm/types/types';
44

55
import { sentryTest } from '../../../utils/fixtures';
66
import { envelopeRequestParser } from '../../../utils/helpers';
7-
import { waitForReplayRequest } from '../../../utils/replayHelpers';
7+
import { shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';
88

99
sentryTest('should have the correct default privacy settings', async ({ getLocalTestPath, page }) => {
10-
// Replay bundles are es6 only
11-
if (process.env.PW_BUNDLE && process.env.PW_BUNDLE.startsWith('bundle_es5')) {
10+
if (shouldSkipReplayTest()) {
1211
sentryTest.skip();
1312
}
1413

0 commit comments

Comments
 (0)