Skip to content

fix: increase timeout for message visibility assertion in e2e tests - #741

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings
Nov 13, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings

Conversation

@pikann

@pikann pikann commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes e2e failures from the manually triggered e2e-tests run (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 on setOffline(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 (toBeInViewport timed 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

  • Re-run the e2e-tests workflow; confirm sync-ui passes in firefox, webkit and mobile-safari
  • Confirm conversation-follow passes in webkit

Not run locally; verification is the CI rerun.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — minor suggestions inline.

Reviewed changes

  • sync-ui offline test: drops the "the renamed task is still absent while offline" assertion and moves the task-list fetch counter ahead of setOffline(true), so the in-place/no-refetch check still spans the offline window.
  • conversation-follow viewport assertion: raises toBeInViewport from the 5s default to 15s for the WebKit failure.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using 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 });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@pikann
pikann merged commit e6f2f1c into master Nov 13, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-testings branch November 13, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant