Skip to content

Commit acef6e5

Browse files
committed
small fixes
1 parent e435d1e commit acef6e5

File tree

3 files changed

+5
-3
lines changed
  • dev-packages/browser-integration-tests

3 files changed

+5
-3
lines changed

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/replay/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import { expect } from '@playwright/test';
33
import { sentryTest } from '../../../../utils/fixtures';
44
import { getReplayEvent, shouldSkipReplayTest, waitForReplayRequest } from '../../../../utils/replayHelpers';
55

6+
const bundle = process.env.PW_BUNDLE || '';
7+
68
sentryTest('should capture a replay', async ({ getLocalTestUrl, page }) => {
79
// When in buffer mode, there will not be a replay by default
8-
if (shouldSkipReplayTest() || process.env.PW_BUNDLE === 'loader_replay_buffer') {
10+
if (shouldSkipReplayTest() || bundle === 'loader_replay_buffer') {
911
sentryTest.skip();
1012
}
1113

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/replayError/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sentryTest('should capture a replay & attach an error', async ({ getLocalTestUrl
2424

2525
const errorEventData = envelopeRequestParser(reqError);
2626
expect(errorEventData.exception?.values?.length).toBe(1);
27-
expect(errorEventData.exception?.values?.[0]?.value).toBe('window.doSomethingWrong is not a function');
27+
expect(errorEventData.exception?.values?.[0]?.value).toContain('window.doSomethingWrong is not a function');
2828

2929
const eventData = getReplayEvent(await req);
3030

dev-packages/browser-integration-tests/suites/replay/errors/immediateError/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sentryTest(
2626

2727
const errorEventData = envelopeRequestParser(reqError);
2828
expect(errorEventData.exception?.values?.length).toBe(1);
29-
expect(errorEventData.exception?.values?.[0]?.value).toBe('window.doSomethingWrong is not a function');
29+
expect(errorEventData.exception?.values?.[0]?.value).toContain('window.doSomethingWrong is not a function');
3030

3131
const eventData = getReplayEvent(await req);
3232

0 commit comments

Comments
 (0)