diff --git a/dev-packages/browser-integration-tests/suites/feedback/logger/test.ts b/dev-packages/browser-integration-tests/suites/feedback/logger/test.ts index 1465204b7c69..34fadfc2503b 100644 --- a/dev-packages/browser-integration-tests/suites/feedback/logger/test.ts +++ b/dev-packages/browser-integration-tests/suites/feedback/logger/test.ts @@ -8,7 +8,8 @@ import { shouldSkipFeedbackTest } from '../../../utils/helpers'; * Even if feedback is included via the CDN, this test ensures that the logger is working correctly. */ sentryTest('should log error correctly', async ({ getLocalTestUrl, page }) => { - if (shouldSkipFeedbackTest()) { + // In minified bundles we do not have logger messages, so we skip the test + if (shouldSkipFeedbackTest() || (process.env.PW_BUNDLE || '').includes('_min')) { sentryTest.skip(); } diff --git a/dev-packages/browser-integration-tests/suites/replay/logger/test.ts b/dev-packages/browser-integration-tests/suites/replay/logger/test.ts index 9b054323c3b7..fa034a12b003 100644 --- a/dev-packages/browser-integration-tests/suites/replay/logger/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/logger/test.ts @@ -4,7 +4,8 @@ import { sentryTest } from '../../../utils/fixtures'; import { shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers'; sentryTest('should output logger messages', async ({ getLocalTestPath, page }) => { - if (shouldSkipReplayTest()) { + // In minified bundles we do not have logger messages, so we skip the test + if (shouldSkipReplayTest() || (process.env.PW_BUNDLE || '').includes('_min')) { sentryTest.skip(); }