Test admin CRUD - TheJosephChen/Chen-Joseph-webdev GitHub Wiki
Preconditions:
- admin user exists
- ed user does not exist
Testing creation
- login as admin
- click on the admin link at the top-right corner of the home page
- click on the plus sign at the top-right of the user table
- enter ed into all four inputs and click Create User
- note that ed now appears in the user table
Testing reading
- login as admin
- click on the admin link at the top-right corner of the home page
- note that you can see the username and roles of all users
- click on the name of any user
- note that you can see the details of that user on their profile
Testing updating
- login as admin
- click on the admin link at the top-right corner of the home page
- click edit next to any user's name
- assign or delete any role from that user
- note that the assign/delete button appears/disappears based on which one was clicked
- click on the back button in the top-left corner
- note that the user you have changed the roles of has kept the changes you applied
Testing deleting
- login as admin
- click on the admin link at the top-right corner of the home page
- click delete next to any user's name
- note that the user no longer shows up on the table