Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

tests/e2e/inbox-tags.spec.ts:282 (tag in a file comment) hung for 4 minutes and failed in about half of recent CI runs.

Cause: a race in the test, not a product bug. Opening a file beside the thread hides the list and springs the sidebar shut, so the file pane slides and widens for about 330 ms after .ib-docscroll shows. The spec measured the passage on that first frame. On a slow runner the drag then landed on blank space, nothing was selected, no selection toolbar opened, and the click on Comment waited out the whole test timeout.

Fix: measure the passage once it has stayed put for ten animation frames, and wait for the toolbar with the normal expect timeout so a miss fails in 15 s instead of 4 minutes.

Checked:

  • On main, in Linux (Playwright image, 1 CPU): 2 of 4 runs failed the same way (waiting for the Comment button).
  • On main, macOS, with a 400 ms pause between measuring and dragging: 3 of 3 failed the same way.
  • With this change: the spec file passed 70 of 70 tests in Linux (1 CPU, --repeat-each 10) and 70 of 70 on macOS.

…oving

Opening a file beside the thread hides the list and springs the sidebar
shut, so the file pane slides and widens for about 330 ms after it shows.
The spec measured the passage on the first frame; on a slow runner the drag
then landed on blank space, no selection toolbar opened, and the click
waited out the 4-minute test timeout. Measure once the passage has stayed
put for ten frames, and wait for the toolbar with the expect timeout.
@backnotprop
backnotprop merged commit 144cc74 into main Oct 20, 2026
35 of 37 checks passed
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.

2 participants