Skip to content
Merged
Show file tree
Hide file tree
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 @@ -78,9 +78,8 @@ sentryTest(

await page.goto(url);
await page.locator('#annotated-button').click();
await page.evaluate('Sentry.captureException("test exception")');

const eventData = await promise;
const [eventData] = await Promise.all([promise, page.evaluate('Sentry.captureException("test exception")')]);

expect(eventData.breadcrumbs).toEqual([
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import type { Event } from '@sentry/types';
import { sentryTest } from '../../../../../utils/fixtures';
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

// This test rarely flakes with timeouts. The reason might be:
// https://github.com/microsoft/playwright/issues/10376
sentryTest(
'should assign request and response context from a failed 500 fetch request',
async ({ getLocalTestPath, page }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ async function run() {
});
}

run();
(async () => {
await run();
})();
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ sentryTest('should stop recording after receiving an error response', async ({ g
});

const url = await getLocalTestPath({ testDir: __dirname });
await page.goto(url);
await Promise.all([page.goto(url), waitForReplayRequest(page)]);

await waitForReplayRequest(page);
await page.locator('button').click();

expect(called).toBe(1);
Expand Down