Skip to content

test(bulk-move): wait for the move page before clicking Move (closes #233) - #235

Merged
plainprogrammer merged 1 commit into
mainfrom
233-bulk-move-flake
Nov 9, 2026
Merged

plainprogrammer merged 1 commit into
mainfrom
233-bulk-move-flake

Conversation

@plainprogrammer

Copy link
Copy Markdown
Owner

Closes #233.

spec/system/bulk_move_spec.rb:54 clicked a bare click_on "Move" right after following "Move to…". On the bulk page, Capybara's :smart match falls back to a partial match, so while the move page hadn't rendered yet it clicked "Move to…" again, and document.getElementById('to') was null.

It failed twice on 2026-11-09:

Fix: wait for the move page's heading, as the file's other examples do, then click_on "Move", exact: true. The other examples that click Move already wait on the page's h1 or the To select.

Evidence:

  • 5 consecutive local runs of the file: 4 examples, 0 failures each.
  • The pre-push hook ran the full bin/ci on this head.

🤖 Generated with Claude Code

On the bulk page a bare click_on "Move" partially matches the "Move to…"
button, so while the move page hadn't rendered yet the example clicked
"Move to…" again and found no #to field. It failed twice on 2026-11-09
(#229's pre-push, PR #232's shard 2). Wait for the move page's heading,
as the file's other examples do, and click with exact: true.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@plainprogrammer plainprogrammer self-assigned this Nov 9, 2026
@plainprogrammer
plainprogrammer merged commit 5965f54 into main Nov 9, 2026
9 checks passed
@plainprogrammer
plainprogrammer deleted the 233-bulk-move-flake branch November 9, 2026 17:03
plainprogrammer added a commit that referenced this pull request Nov 9, 2026
Takes main's text for the shared lines of tenancy-and-accounts.md (#235, #236) minus this branch's own clause, and recounts: two behaviours remain with no spec source (#229).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

Flaky: bulk_move_spec.rb:54 clicks Move before the move page has loaded

1 participant