Skip to content
Closed
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
test: Fix flaky loader test
  • Loading branch information
mydea committed Oct 28, 2024
commit bdda90925403dbdb99c10f0a225a15a498c4c70c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ sentryTest(
async ({ getLocalTestUrl, page }) => {
const errors: string[] = [];

await page.route('https://dsn.ingest.sentry.io/**/*', route => {
return route.fulfill({
status: 200,
contentType: 'application/json',
body: JSON.stringify({ id: 'test-id' }),
});
});

page.on('console', msg => {
if (msg.type() === 'error') {
errors.push(msg.text());
Expand Down