WebDriver Test Specifications - Pancia/UniBull GitHub Wiki
LOGIN PAGE
- once on the login page
- when the user clicks login
- with valid credentials
- it should authenticate and go to home page
- with invalid credentials
- it should display an error
- when the user clicks sign up
- it should go to signup page
SIGN UP PAGE
- once on the signup page
- when the user submits the form
- with valid information
- it should add them to the db and go to the home page
- it should allow relogging with new credentials
- with invalid information
- it should display an error
√ HOME PAGE
- √ once on the home page
- √ when the user wants to go to a different page
- clicking on the classes button
- should redirect you to the classes page
CLASSES PAGE
- given that you're logged in
- √ once on the classes page
- it should have content
- clicking links should redirect you appropriately
- √ when the user clicks add a class
- the form should be displayed
- when the user fills out the add a class form
- with valid information
- it should create the class and add the user to it
- it should add the class to available class links
- with invalid information
- it should display an error
CLASSROOM PAGE
- once on the classroom page
- it should have content
- clicking links should redirect you appropriately
- when the user clicks submit a post
- the form should be displayed (screenshot)
- when the user fills out the submit a post form
- with valid information
- it should add the post to the forum
- with invalid information
- it should display an error
Current Mocha Output
testing front end login module
when the user submits a login form
✓ it should trigger an ajax call
testing front end home page
once on the home page
✓ should have content (1622ms)
testing front end login
once on the login page
✓ should have content (990ms)
when the user clicks login with invalid credentials
✓ should do nothing.. (1674ms)
when the user clicks login with valid credentials
✓ should authenticate and go to home page (1901ms)
testing front end sign up
once on the sign up page
✓ should have content (885ms)
when the user fills out the form
✓ should redirect you to home (1732ms)
✓ should allow you to re-login as the new user (4737ms)