Skip to content

Comments

Fix flaky reset password person test#1150

Merged
maebeale merged 1 commit intomainfrom
maebeale/fix-reset-password-test
Feb 22, 2026
Merged

Fix flaky reset password person test#1150
maebeale merged 1 commit intomainfrom
maebeale/fix-reset-password-test

Conversation

@maebeale
Copy link
Collaborator

Summary

  • Fix flaky reset_password_person_spec.rb test that intermittently failed with Unable to find css "#avatar button"
  • The before block was navigating to the change password page by clicking through the avatar dropdown, but the #flash_now container div is always present in the DOM, so the flash-dismiss wait was ineffective and the flash overlay sometimes blocked the avatar button
  • Replaced the fragile UI navigation with a direct visit change_password_path, since the tests are about change password page behavior, not avatar dropdown navigation

Fixes #826

Test plan

  • Confirm reset_password_person_spec.rb passes in CI
  • Confirm no regressions in other system specs

🤖 Generated with Claude Code

…rd_path

The before block was clicking through the avatar dropdown to reach the
change password page, but the flash message overlay sometimes blocked
the avatar button. Since the tests are about the change password page
behavior (not avatar dropdown navigation), visit the path directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maebeale maebeale merged commit 5d47d65 into main Feb 22, 2026
3 checks passed
@maebeale maebeale deleted the maebeale/fix-reset-password-test branch February 22, 2026 01:40
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.

Fix: flaky test - facilitator logout and reset

1 participant