Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change button from 'Promote to Admin' to 'Edit User' #4701

Merged

Conversation

leslie-seeberger
Copy link
Contributor

@leslie-seeberger leslie-seeberger commented Oct 3, 2024

Resolves #4664

Description

Changed the 'Promote to Admin' button to 'Edit User', allowing the super admin to change the user's role from the admin/users/edit page.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

How Has This Been Tested?

  • Added a test to ensure that the super admin the link to edit the user on the organization's page
  • Manually tested

Screenshot from 2024-10-02 23-58-00

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

Functionality looks good

@cielf cielf requested a review from dorner October 4, 2024 16:14
@cielf
Copy link
Collaborator

cielf commented Oct 4, 2024

@dorner Can you take a technical pass on this one, please?

@@ -151,5 +153,15 @@
expect(page).to have_content("Default email text")
expect(page).to have_content("Users")
end

it "can edit a user within an organization" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need a full system spec for this - you can just validate the button in the HTML in a request spec.

@leslie-seeberger
Copy link
Contributor Author

Removed the system spec and added a request spec as suggested.

Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

All good!

@dorner dorner merged commit 93b53f3 into rubyforgood:main Oct 10, 2024
11 checks passed
Copy link
Contributor

@leslie-seeberger: Your PR Change button from 'Promote to Admin' to 'Edit User' is part of today's Human Essentials production release: 2024.10.13.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants