Fix All CASA Admin "Change Password" button #6529
Merged
+135
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.erbto 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:
/all_casa_admins/editlocally, confirmed the password form expands and updates work. See Loom demo and screenshots below.Demo

Before:

After:

Feelings gif