From 7d4560a537e179789ec5c00126ba08e684e7e3af Mon Sep 17 00:00:00 2001 From: niranjankagri Date: Fri, 20 Nov 2026 06:52:20 +0530 Subject: [PATCH] Wait for a page load plus a server round trip after adding a note 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 --- framework/pages/notes_page.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/pages/notes_page.py b/framework/pages/notes_page.py index 6f7c928..78b7dc4 100644 --- a/framework/pages/notes_page.py +++ b/framework/pages/notes_page.py @@ -68,8 +68,12 @@ def add_note(self, note: NoteData, completed: bool = False) -> None: self.form_title.fill(note.title) self.form_description.fill(note.description) self.form_submit.click() - # The card appears once the server has saved the note - self.card(note.title).wait_for(timeout=self.settings.ui_server_timeout_ms) + # After saving, the app reloads the whole page and fetches the list again, so the card + # appears only after a save, a page load and a list load: wait for a page load plus a + # server round trip (on 20 Nov 2026 that chain took about 32 s on the slow demo) + self.card(note.title).wait_for( + timeout=self.settings.ui_navigation_timeout_ms + self.settings.ui_server_timeout_ms + ) def toggle_completed(self, title: str) -> None: """Flips the completed switch on the note's card."""