Skip to content

Wait for a page load plus a server round trip after adding a note - #10

Merged
niranjankagri merged 1 commit into
mainfrom
fix/add-note-wait-covers-reload
Nov 20, 2026
Merged

niranjankagri merged 1 commit into
mainfrom
fix/add-note-wait-covers-reload

Conversation

@niranjankagri

Copy link
Copy Markdown
Owner

Main CI after #9 (run 44648180711) failed once on chromium: test_tc106_completing_every_note_shows_all_done, Locator.wait_for: Timeout 30000ms exceeded in NotesPage.add_note.

Cause (from the Playwright trace): after saving a note the app reloads the whole page (GET /notes/app) and fetches the list again, so the new card appears only after a save, a page load and a list load. On the slow demo site that took about 32 s: POST 7 s, page reload 4.5 s, the site's own scripts up to 17 s (main.js 16.9 s), list 3.7 s. A local trace shows the same reload on a fast day (about 1.3 s in total). Yesterday's tc105 failure was the same wait.

Fix: the card wait in add_note now allows ui_navigation_timeout_ms + ui_server_timeout_ms (60 s by default). No new setting; a wrong result still fails, only later.

Local: ruff clean; 14/14 UI + hybrid on chromium (-n 2); demo run unchanged (2 failed, 1 skipped, 1 xfailed).

🤖 Generated with Claude Code

After saving, the app reloads the whole page and fetches the list again, so the
new card appears only after a save, a page load and a list load. On the slow
demo site (main CI run 44648180711, 20 Nov 2026) that chain took about 32 s:
POST 7 s, page reload 4.5 s, the site's own scripts up to 17 s, list 3.7 s,
just over the 30 s server timeout. The card wait now allows
ui_navigation_timeout_ms + ui_server_timeout_ms (60 s by default).

Local: 14/14 UI + hybrid on chromium (-n 2); demo run unchanged
(2 failed, 1 skipped, 1 xfailed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niranjankagri
niranjankagri merged commit 1b6818d into main Nov 20, 2026
10 checks passed
@niranjankagri
niranjankagri deleted the fix/add-note-wait-covers-reload branch November 20, 2026 01:41
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