This document will highlight all the actions that can be performed within the application, along with the expected outcomes of performing said actions.
It is expected that every action a user can perform should be documented here and if an action and/or behavior is altered, then this document should be updated to reflect those alterations.
The purpose of laying out behaviors in this way is to allow us to set up regression and end-to-end tests easily as well as allow their automation later on.
Successful Login (Using Andela Email)
- Visit login page
- Click on the
Sign in with Google
button. - A popup will appear requesting you to choose your preferred email.
- Select your Andela email (email must have admin privileges)
- You will be redirected to the
/dashboard
endpoint
Failed Login (Using Non-Andela Email)
- Do step 1 to 3 of successful login flow
- Select a non-Andela email
- A toast message appears at the top right corner of the browser page asking you to login with an Andela email.
Failed Login (Using Andela Email Without Proper Privileges)
- Do step 1 to 4 of successful login flow using email without proper privileges
- A modal appears telling you that only users with admin privileges can access the site
Registration is similar to login workflow. Refer to login workflow
A security user must be registered by an Andela user with admin privileges.
Successfully Registration
- Login - see logging in.
- Click the
Users
link in the navigation bar. - Click the
Security Users
tab. - Click the
Add Security User button
. A modal with a form to enter security user details will appear. - Enter the user details and click the
Submit
button. - A success alert is displayed at the top of the modal.
- Repeat steps 1 to 6 in case you need to add another security user
- Click the
Cancel
button to close the modal
Registration With Validation Errors
- Perform step 1 to 4 of successful registration flow
- Submit form with validation errors
- An alert is displayed at the top of the modal indicating the validation errors
Registration With Invalid Email
- Perform step 1 to 4 of successful registration flow.
- Submit form with an invalid email.
- The email input field is highlighted in red and a message appears at the bottom of the input field indicating that the email is not valid.
Registration With Duplicate Badge Number
- Perform step 1 to 4 of successful registration flow.
- Submit form with a duplicate badge number.
- An alert shows up at the top of the form informing you that the badge number already exists.