diff --git a/packages/browser-integration-tests/suites/replay/captureReplay/test.ts b/packages/browser-integration-tests/suites/replay/captureReplay/test.ts index d06be65f1cb6..96d2ff60fb11 100644 --- a/packages/browser-integration-tests/suites/replay/captureReplay/test.ts +++ b/packages/browser-integration-tests/suites/replay/captureReplay/test.ts @@ -4,7 +4,7 @@ import { SDK_VERSION } from '@sentry/browser'; import { sentryTest } from '../../../utils/fixtures'; import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers'; -sentryTest('should capture replays', async ({ getLocalTestPath, page }) => { +sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalTestPath, page }) => { if (shouldSkipReplayTest()) { sentryTest.skip(); } diff --git a/packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/init.js b/packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/init.js similarity index 81% rename from packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/init.js rename to packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/init.js index 7a0337445768..16b46e3adc54 100644 --- a/packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/init.js +++ b/packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/init.js @@ -1,7 +1,8 @@ import * as Sentry from '@sentry/browser'; +import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Sentry.Replay({ +window.Replay = new Replay({ flushMinDelay: 200, flushMaxDelay: 200, }); diff --git a/packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/template.html b/packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/template.html similarity index 100% rename from packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/template.html rename to packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/template.html diff --git a/packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/test.ts b/packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts similarity index 86% rename from packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/test.ts rename to packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts index 0f50a194e01c..82f791ec7be8 100644 --- a/packages/browser-integration-tests/suites/replay/captureReplayViaBrowser/test.ts +++ b/packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts @@ -2,12 +2,10 @@ import { expect } from '@playwright/test'; import { SDK_VERSION } from '@sentry/browser'; import { sentryTest } from '../../../utils/fixtures'; -import { getReplayEvent, waitForReplayRequest } from '../../../utils/replayHelpers'; +import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers'; -sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalTestPath, page }) => { - // For this test, we skip all bundle tests, as we're only interested in Replay being correctly - // exported from the `@sentry/browser` npm package. - if (process.env.PW_BUNDLE && process.env.PW_BUNDLE.startsWith('bundle_')) { +sentryTest('should capture replays (@sentry/replay export)', async ({ getLocalTestPath, page }) => { + if (shouldSkipReplayTest()) { sentryTest.skip(); } diff --git a/packages/browser-integration-tests/suites/replay/fileInput/init.js b/packages/browser-integration-tests/suites/replay/fileInput/init.js index a09c517b6a92..4081a8b9182d 100644 --- a/packages/browser-integration-tests/suites/replay/fileInput/init.js +++ b/packages/browser-integration-tests/suites/replay/fileInput/init.js @@ -1,8 +1,7 @@ import * as Sentry from '@sentry/browser'; -import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Replay({ +window.Replay = new Sentry.Replay({ flushMinDelay: 200, flushMaxDelay: 200, useCompression: false, diff --git a/packages/browser-integration-tests/suites/replay/privacyBlock/init.js b/packages/browser-integration-tests/suites/replay/privacyBlock/init.js index 31d8a00ed0fd..6c37e3d85e44 100644 --- a/packages/browser-integration-tests/suites/replay/privacyBlock/init.js +++ b/packages/browser-integration-tests/suites/replay/privacyBlock/init.js @@ -1,8 +1,7 @@ import * as Sentry from '@sentry/browser'; -import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Replay({ +window.Replay = new Sentry.Replay({ flushMinDelay: 200, flushMaxDelay: 200, useCompression: false, diff --git a/packages/browser-integration-tests/suites/replay/privacyDefault/init.js b/packages/browser-integration-tests/suites/replay/privacyDefault/init.js index ccb9689a14d6..10f4385a1369 100644 --- a/packages/browser-integration-tests/suites/replay/privacyDefault/init.js +++ b/packages/browser-integration-tests/suites/replay/privacyDefault/init.js @@ -1,8 +1,7 @@ import * as Sentry from '@sentry/browser'; -import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Replay({ +window.Replay = new Sentry.Replay({ flushMinDelay: 200, flushMaxDelay: 200, useCompression: false, diff --git a/packages/browser-integration-tests/suites/replay/privacyInput/init.js b/packages/browser-integration-tests/suites/replay/privacyInput/init.js index a09c517b6a92..4081a8b9182d 100644 --- a/packages/browser-integration-tests/suites/replay/privacyInput/init.js +++ b/packages/browser-integration-tests/suites/replay/privacyInput/init.js @@ -1,8 +1,7 @@ import * as Sentry from '@sentry/browser'; -import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Replay({ +window.Replay = new Sentry.Replay({ flushMinDelay: 200, flushMaxDelay: 200, useCompression: false, diff --git a/packages/browser-integration-tests/suites/replay/privacyInputMaskAll/init.js b/packages/browser-integration-tests/suites/replay/privacyInputMaskAll/init.js index 6345c0f75f4e..cff4c6dab7bd 100644 --- a/packages/browser-integration-tests/suites/replay/privacyInputMaskAll/init.js +++ b/packages/browser-integration-tests/suites/replay/privacyInputMaskAll/init.js @@ -1,8 +1,7 @@ import * as Sentry from '@sentry/browser'; -import { Replay } from '@sentry/replay'; window.Sentry = Sentry; -window.Replay = new Replay({ +window.Replay = new Sentry.Replay({ flushMinDelay: 200, flushMaxDelay: 200, useCompression: false,