Skip to content

Commit 22ce8dc

Browse files
committed
add explainer to test
1 parent c06aaef commit 22ce8dc

File tree

1 file changed

+5
-0
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/globalHandlers/dataUrls

1 file changed

+5
-0
lines changed

dev-packages/browser-integration-tests/suites/integrations/globalHandlers/dataUrls/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import { expect } from '@playwright/test';
22
import { sentryTest } from '../../../../utils/fixtures';
33
import { envelopeRequestParser, waitForErrorRequest } from '../../../../utils/helpers';
44

5+
/**
6+
* Tests a special case where the `globalHandlersIntegration` itself creates a stack frame instead of using
7+
* stack parsers. This is necessary because we don't always get an `error` object passed to `window.onerror`.
8+
* @see `globalhandlers.ts#_enhanceEventWithInitialFrame`
9+
*/
510
sentryTest('detects and handles data urls on first stack frame', async ({ getLocalTestUrl, page }) => {
611
const url = await getLocalTestUrl({ testDir: __dirname });
712

0 commit comments

Comments
 (0)