Previously when a user attempted to press the sign in button without inputting a username or password, nothing would happen. Now, the user is presented with an alert that asks them to provide a username. If the user then types in a username and no password, they are asked to provide the password.
Steps for manual testing:
Open VisualGit to the log in page
1a. If you have previously saved your credentials and are automatically signed in, sign out.
Ensure nothing has been typed into the username or password box and press the 'Sign In' button
Check that you are presented with an alert box with the following message: 'Please enter your username to sign in'
Enter some text into the username box, leaving the password box empty, and press the 'Sign In' button again
Check that you are presented with an alert box with the following message: 'Please enter your password to sign in'
Removed your inputted username, enter some text into the password box, and once again press the 'Sign In' button
Check that you are presented with an alert box with the following message: 'Please enter your username to sign in'
Enter both a username and password, ensuring one is incorrect, and press the 'Sign In' button again.
Check that you are presented with an alert box with the following message: 'Error: Bad credentials'
Checklist:
[x] Latest master merged/rebased into your feature branch
[x] Tests covering all changes
[x] Meets the projects coding conventions
[x] No out of scope changes
[] @Mentioned any relevant team members
[x] No failure when running the linter (npm run lint)
[x] Included a relevant gif (search here for inspiration)
Related Issue/Keyword:
Closes issue #189
Description:
Previously when a user attempted to press the sign in button without inputting a username or password, nothing would happen. Now, the user is presented with an alert that asks them to provide a username. If the user then types in a username and no password, they are asked to provide the password.
Steps for manual testing:
Checklist:
npm run lint
)