Skip to content

Testing

yrrah edited this page Apr 23, 2020 · 26 revisions

User Accounts

username password role
admin admin Admin
alice alice Student
bob bob Advisor
charlie charlie Student
dan dan Advisor

Note: Refreshing any of the pages will log you out and take you back to the home page.

Test 0 (login to app)

  1. Navigate to https://master.d3triiqu7oxfi3.amplifyapp.com.
  2. (optional) Click REGISTER to make an account. By default, new accounts are of type "User" which is same as a guest. Only an "Admin" will be able to create an account with a role.
  3. Click LOGIN at the top right of the home page
  4. Enter login information for desired user

Test 1 (user related to another user)

  1. Complete Test 9 (display all users as admin)
  2. Click on alice in the user list to display alice's profile details
  3. Edit alice's assigned advisor

Test 2 (search for domain objects matching criteria)

  1. Complete Test 0 (login) for any user
  2. The default page is the "Jobs Dashboard"
  3. Click the magnifying glass on the right side of the "All Jobs" table
  4. Enter desired search term to find matching jobs

Test 3 (view details of particular domain object)

  1. Complete Test 2
  2. Click on the arrows on the left side of the list to expand job details

Test 4 (view domain objects related to user)

  1. Complete Test 0 (login) as alice
  2. Select any job from the "All Jobs" menu
  3. Use the icons in the top right to add the job to "Favorite Jobs" or to create a job application
  4. Collapse the "All Jobs" list using the carat in the top right
  5. Expand the "Favorite Jobs" and "Job Applications" lists to view these related domain objects

Test 5 (view other users related to the user)

  1. Complete Test 0 (login) as bob
  2. Scroll down to "My Assigned Students"
  3. You must login as admin to reassign a Student to another Advisor

Test 6 (user related to domain object)

When you log in as a student, you can add the jobs you are interested into the Favorite, and you can check the favorite list in the dashboard.

Test 7 (domain object related to another domain object)

  1. Complete Test 4
  2. In the "Job Applications" list, details of a Job (domain object #1) are pulled in and displayed alongside the corresponding application (domain object #2)

Test 8 (admin creates a user)

  1. Complete Test 0 (login) for admin
  2. Navigate to user list via the menu on the left
  3. Use the form below the user list to create a new user

Test 9 (admin lists all users)

  1. Complete Test 0 (login) for admin
  2. On the left side menu select "Manage Users" (People icon)
  3. All users are listed in the table

Test 10 (admin updates a user)

  1. Complete Test 9
  2. Click on the table row for dan to navigate to his profile
  3. Edit dan's user details

Test 11 (admin removes a user)

  1. Complete Test 9
  2. Click a checkbox on the left side of the user table
  3. Click the trashcan that appears in the top right of the user table

User Roles and Abilities:

  1. "Admin" type of user has firstName, lastName, username, password.
  • can assign students to an advisor
  • can create new users with any role
  • can edit existing users
  1. "Student" type of user has firstName, lastName, username, password, graduation year, scholarship, major, agreement, favorites.
  • can create many applications to apply to jobs.
  • can also add many jobs as his/her favorite jobs.
  • can filter "All Jobs" using lists created by their advisor (Not implemented yet)
  • Student can complete Student Agreement form on their profile page
  1. "Advisor" type of user has firstName, lastName, username, password, office, tenured, advised students list, job lists.
  • Advisor can create many job lists composed of lots of jobs. (Not implemented yet)
  1. "User" (Anonymous) type of user has firstName, lastName, username, password.
  • can browse "All Jobs"
  • using the "REGISTER" feature on the homepage creates this type of user
  • user role must be changed by admin