Skip to content

Conversation

@AudTheCodeWitch
Copy link
Contributor

What github issue is this PR for, if any?

Resolves #6527

What changed, and why?

The bug fix updates the "Change Password" button and collapse form in app/views/all_casa_admins/edit.html.erb to use Bootstrap 5 attributes (data-bs-toggle, data-bs-target) instead of Bootstrap 4 (data-toggle, data-target). The parent accordion reference was also removed. Previously, clicking "Change Password" did not expand the password form due to outdated attributes, preventing admins from updating their password. Now, the button correctly toggles the password form, restoring expected functionality and improving user experience.

How is this tested?

New test files added:

  • spec/views/all_casa_admins/edit.html.erb_spec.rb — verifies the correct rendering and behavior of the edit profile view.
  • spec/system/all_casa_admins/edit_spec.rb — covers system-level interactions for editing admin profiles.
  • spec/system/all_casa_admins/password_change_spec.rb — tests the password change workflow, including form expansion and successful/failed updates.

Manual testing:

  • Navigated to /all_casa_admins/edit locally, confirmed the password form expands and updates work. See Loom demo and screenshots below.

Demo
dbb1b4d5e5f344b4972735dc693e5386-51f60ae5c0f4e762-full-play

Before:
Screenshot 2025-10-06 at 2 58 57 PM

After:
Screenshot 2025-10-06 at 2 59 08 PM

Feelings gif

Jim Halpert from The Office saying, "Problem solved."`

AudTheCodeWitch and others added 6 commits October 6, 2025 14:42
Signed-off-by: Audrea Cook <audrea@codewitch.dev>
…page

Signed-off-by: Audrea Cook <audrea@codewitch.dev>
Signed-off-by: Audrea Cook <audrea@codewitch.dev>
Signed-off-by: Audrea Cook <audrea@codewitch.dev>
Signed-off-by: Audrea Cook <audrea@codewitch.dev>
@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 erb labels Oct 6, 2025
@AudTheCodeWitch AudTheCodeWitch marked this pull request as ready for review October 6, 2025 21:21
@AudTheCodeWitch
Copy link
Contributor Author

The docker check is failing. It looks like it might be a flake/failure from an unrelated test. However, I can't figure out how to retry the job (I'm assuming I lack the proper permission).


require "rails_helper"

RSpec.describe "AllCasaAdmin edit page", type: :system do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay system spec!

@compwron
Copy link
Collaborator

compwron commented Oct 7, 2025

un/fortunately, part of the point of having both the rspec and docker builds, is to 1. make sure docker keeps working but 2. to be able to tell when one of them is failing on a flake, i.e. both of them are not failing

@compwron compwron merged commit 47c7c25 into rubyforgood:main Oct 7, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

erb ruby Pull requests that update Ruby code Tests! 🎉💖👏

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: "Change Password" button does not expand/collapse password form on All CASA Admin edit page (Bootstrap 5 collapse issue)

2 participants