Flaky: a post's menu loses its buttons now and then (calm-post, aux specs) #324

Closed
opened 2026-10-24 01:54:11 +00:00 by littlefox · 1 comment
Owner

Two specs often fail their first try and pass on retry, on CI and locally, each time after 2 minutes waiting for a button in a post's menu or aux list:

  • calm-post.spec.ts "one byline, two buttons and a menu": .more-menu button "Svara privat" or "Detaljer" not found (CI #537; full runs on 2026-10-23 and 2026-10-24).
  • aux.spec.ts "aux items of a text and of a conference": "Visa aux-poster (3)" never clickable (android, desktop).

Likely cause: the menu (or the aux list) closes, or the post redraws, between opening it and the click. That's a redraw from read state or a thread reload, as with #305 and #228. To look into: what redraws the post card while its menu is open, and whether a reader could lose an open menu the same way.

Two specs often fail their first try and pass on retry, on CI and locally, each time after 2 minutes waiting for a button in a post's menu or aux list: - `calm-post.spec.ts` "one byline, two buttons and a menu": `.more-menu` button "Svara privat" or "Detaljer" not found (CI #537; full runs on 2026-10-23 and 2026-10-24). - `aux.spec.ts` "aux items of a text and of a conference": "Visa aux-poster (3)" never clickable (android, desktop). Likely cause: the menu (or the aux list) closes, or the post redraws, between opening it and the click. That's a redraw from read state or a thread reload, as with #305 and #228. To look into: what redraws the post card while its menu is open, and whether a reader could lose an open menu the same way.
Author
Owner

Fixed in #327; main green (run #594).

Cause: a post shown by number is drawn on its own first, then again inside its thread when that arrives, as a new component, so a menu, Detaljer or aux list opened in between closed by itself. Confirmed by marking the element: it is replaced about 300 ms after showing.

  • What is open on a post is now kept by post number.
  • New test in calm-post.spec opens the menu and Detaljer before the thread arrives. With 200 ms latency the menu was lost without the fix and kept with it.
  • Full suite: 411 passed, none flaky; calm-post and aux pass on their first try.
Fixed in #327; main green (run #594). Cause: a post shown by number is drawn on its own first, then again inside its thread when that arrives, as a new component, so a menu, Detaljer or aux list opened in between closed by itself. Confirmed by marking the element: it is replaced about 300 ms after showing. - What is open on a post is now kept by post number. - New test in calm-post.spec opens the menu and Detaljer before the thread arrives. With 200 ms latency the menu was lost without the fix and kept with it. - Full suite: 411 passed, none flaky; calm-post and aux pass on their first try.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#324
No description provided.