Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ sentryTest('it does not download the SDK if the SDK was loaded in the meanwhile'
// Still loaded the CDN bundle twice
await expect.poll(() => cdnLoadedCount, { timeout: 15_000 }).toBe(2);

// But only sent to Sentry once
expect(sentryEventCount).toBe(1);
// But only sent to Sentry once (`waitForErrorRequest` can resolve before the DSN
// `page.route` handler increments — poll until the intercept has run)
await expect.poll(() => sentryEventCount, { timeout: 15_000 }).toBe(1);

// Ensure loader does not overwrite init/config
const options = await page.evaluate(() => (window as any).Sentry.getClient()?.getOptions());
Expand Down
Loading