To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorAdmin User Management Features as user with admin role
- Background Login create default site
-
- Given
- the site "foobar" exists with the domain "example.com"
- And
- the user "ak730" exists with the role of "admin" in the site "foobar.example.com"
- And
- I authenticates as cas user "ak730"
- Scenarios
-
- Admin login page should redirect to /admin/users#index
- Should not be able to access site the user is not associated with
- Admin login
- Create A New user
- Given I am logged in as an admin then I can edit my account
- Given I am logged in as an admin then I can edit any users account
- Given I am logged in as an admin then I can delete my account
- Delete user account as an admin
- Admin login page should redirect to /admin/users#index
-
- When
- I go to the admin page
- Then
- I should be on the admin pages page
- Should not be able to access site the user is not associated with
-
- Given
- the site "baz" exists with the domain "example.dev"
- When
- I go to the admin page
- Then
- I should see "403"
- Admin login
-
- Given
-
the user with the role exist
user role site foo admin foobar.example.com bar editor foobar.example.com foobar editor foobar.example.com - When
- I go to the admin users page
- Then
- I should be on the admin users page
- And
- I should see "foo"
- And
- I should see "bar"
- And
- I should see "foobar"
- Create A New user
-
- When
- I go to the admin users page
- And
- I follow "New User" within "ul#new_user"
- Then
- I should be on the new admin user page
- When
- I fill in "user_puid" with "foobar" within "div#add_new_user"
- And
- I fill in "user_email" with "[email protected]" within "div#add_new_user"
- And
- I choose "user_role_admin" within "div#add_new_user"
- And
- I press "Create User" within "div#add_new_user"
- Then
- I should be on the admin users page
- And
- I should see "Successfully created user account for foobar"
- And
- I should see "foobar"
- And
- I should see "admin"
- Given I am logged in as an admin then I can edit my account
-
- When
- I go to the admin users page
- And
- I follow "ak730" within "li#ak730"
- Then
- I should now be editing the user "ak730"
- And
- I fill in "user[firstname]" with "Foobar"
- And
- I fill in "user[lastname]" with "Baz"
- And
- I fill in "user[email]" with "[email protected]"
- And
- I should not see "user[role]"
- And
- I press "Update User" within "div#edit_user"
- Then
- I should be on the admin users page
- And
- I should see "Successfully updated user account for ak730"
- When
- I edit the account information for the user "ak730"
- And
- the "user[firstname]" field should contain "Foobar"
- And
- the "user[lastname]" field should contain "Baz"
- And
- the "user[email]" field should contain "[email protected]"
- Given I am logged in as an admin then I can edit any users account
-
- Given
-
the user with the role exist
user role site foo admin foobar.example.com bar editor foobar.example.com - When
- I go to the admin users page
- And
- I follow "foo" within "li#foo"
- Then
- I should now be editing the user "foo"
- And
- the "user[email]" field should contain "[email protected]"
- And
- the "user_role_admin" checkbox should be checked
- And
- I fill in "user[email]" with "[email protected]"
- Then
- I choose "user_role_editor"
- And
- I press "Update User" within "div#edit_user"
- Then
- I should be on the admin users page
- And
- I should see "Successfully updated user account for foo"
- When
- I edit the account information for the user "foo"
- Then
- I should now be editing the user "foo"
- And
- the "user[email]" field should contain "[email protected]"
- And
- the "user_role_editor" checkbox should be checked
- Given I am logged in as an admin then I can delete my account
-
- When
- I go to the admin users page
- And
- I press "delete" within "li#ak730"
- Then
- I should be on the cms html page
- Delete user account as an admin
-
- Given
-
the user with the role exist
user role site foobar admin foobar.example.com bar editor foobar.example.com - When
- I go to the admin users page
- And
- I press "delete" within "li#foobar"
- Then
- I should see "Successfully deleted user account for foobar"
- And
- I should be on the admin users page
Last published over 7 years ago by amkirwan.