Skip to content

test(e2e): Fix react router 6 canary test #14204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2024
Merged
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 @@ -66,8 +66,12 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
expect(resolveBodyDuration).toBe(0);

// validate abort error was thrown by inspecting console
const consoleBreadcrumb = rootSpan.breadcrumbs?.find(breadcrumb => breadcrumb.category === 'console');
expect(consoleBreadcrumb?.message).toBe('Could not fetch sse AbortError: BodyStreamBuffer was aborted');
expect(rootSpan.breadcrumbs).toContainEqual(
expect.objectContaining({
category: 'console',
message: 'Could not fetch sse AbortError: BodyStreamBuffer was aborted',
}),
);
});

test('Aborts when stream takes longer than 5s, by not updating the span duration', async ({ page }) => {
Expand Down
Loading