-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Change button from 'Promote to Admin' to 'Edit User' #4701
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality looks good
@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 |
There was a problem hiding this comment.
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.
Removed the system spec and added a request spec as suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
@leslie-seeberger: Your PR |
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
How Has This Been Tested?