Skip to content

Commit 39ad3bb

Browse files
authored
test(e2e): Fix react router 6 canary test (#14204)
Resolves #14200 RR was emitting an additional log message which caused the matching to fail.
1 parent b2605be commit 39ad3bb

File tree

1 file changed

+6
-2
lines changed
  • dev-packages/e2e-tests/test-applications/react-router-6/tests

1 file changed

+6
-2
lines changed

dev-packages/e2e-tests/test-applications/react-router-6/tests/sse.test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ test('Waits for sse streaming when sse has been explicitly aborted', async ({ pa
6666
expect(resolveBodyDuration).toBe(0);
6767

6868
// validate abort error was thrown by inspecting console
69-
const consoleBreadcrumb = rootSpan.breadcrumbs?.find(breadcrumb => breadcrumb.category === 'console');
70-
expect(consoleBreadcrumb?.message).toBe('Could not fetch sse AbortError: BodyStreamBuffer was aborted');
69+
expect(rootSpan.breadcrumbs).toContainEqual(
70+
expect.objectContaining({
71+
category: 'console',
72+
message: 'Could not fetch sse AbortError: BodyStreamBuffer was aborted',
73+
}),
74+
);
7175
});
7276

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

0 commit comments

Comments
 (0)