Repository navigation
fix: increase timeout for message visibility assertion in e2e tests - #741
Conversation
There was a problem hiding this comment.
ℹ️ No critical issues — minor suggestions inline.
Reviewed changes
sync-uioffline test: drops the "the renamed task is still absent while offline" assertion and moves the task-list fetch counter ahead ofsetOffline(true), so the in-place/no-refetch check still spans the offline window.conversation-followviewport assertion: raisestoBeInViewportfrom the 5s default to 15s for the WebKit failure.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
| const sentMessage = page.getByText(sent).first(); | ||
| await expect(sentMessage).toBeVisible(); | ||
| await expect(sentMessage).toBeInViewport(); | ||
| await expect(sentMessage).toBeInViewport({ timeout: 15_000 }); |
There was a problem hiding this comment.
The 15s wait is close to the test's whole remaining budget: this spec sets no test.setTimeout, so the default 30s applies, and the failing run already spent ~13-15s before this line. Consider test.setTimeout(60_000) so a slow-but-passing scroll cannot surface as a test timeout. Also, the failing run logged viewport ratio 0 on all 12 polls, so the viewport never moved during the 5s; a longer timeout only helps if the scroll is genuinely late, so check the trace/screenshot before relying on it.

Summary
Fixes e2e failures from the manually triggered
e2e-testsrun (Firefox, mobile-safari and WebKit; Chromium and mobile-chrome passed).realtime/sync-ui.spec.ts— "a change made while the page is offline arrives in place when it is back…": failed in all three non-Chromium browsers on every retry. The test asserted the renamed task was absent while offline, but only Chromium drops the open WebSocket onsetOffline(true). Firefox and WebKit keep delivering over it, so the rename had already arrived. The absence assertion is removed, and the list-fetch counter now starts before going offline so the "arrives in place, no refetch" check still covers the whole window.projects/conversation-follow.spec.ts— "A message sent while scrolled up is shown without a reload": failed in WebKit only (toBeInViewporttimed out at 5s). The timeout is raised to 15s. This is a best guess at a slow scroll in WebKit; if it still fails, the app may not follow the tail there and needs a look.Other failures in that run (mfa, role-badges, docs, etc.) passed on retry and are not addressed here.
Test plan
e2e-testsworkflow; confirmsync-uipasses in firefox, webkit and mobile-safariconversation-followpasses in webkitNot run locally; verification is the CI rerun.