testCompile 'junit:junit:4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: ‘1.10.19'
GIVEN that a user is not signed in
WHEN a user sign in with a password shorter then 6 character
THEN user account manager notify user that there’s an error with message ‘Password shorter then 6 characters’
GIVEN that a user is not signed in
WHEN a user sign in with a username shorter then 5 character
THEN user account manager notify user that there’s an error with message ‘Username shorter then 5 characters’
GIVEN that a user is not signed in and the app is not connected to internet
WHEN a user sign in with a valid password and username
THEN user account manager notify user that there’s an error with message ‘No internet connection’
GIVEN that a user is not signed in
WHEN a user sign in with a valid username and password
THEN user account manager will make a request to server to sign In
GIVEN that a user sign in request is success
WHEN a user sign in with a invalid password and username
THEN user account manager will make a request to server to sign In and notify user with message ‘Invalid username or password’
GIVEN that a user sign in request is success
WHEN a user sign in with a valid password and username
THEN user account manager will navigate the user to welcome screen
GIVEN that a user is not registered
WHEN a user create account with a password shorter then 6 character
THEN user account manager notify user that there’s an error with message ‘Password shorter then 6 characters’
GIVEN that a user is not registered
WHEN a user create account with invalid email
THEN user account manager notify user that there’s an error with message ‘Please enter valid email Id’
GIVEN that a user is not registered and the app is not connected to internet
WHEN a user create account with a valid first name, last name, email, username and password
THEN user account manager notify user that there’s an error with message ‘No internet connection’
GIVEN that a user is not registered
WHEN a user create account with any empty field
THEN user account manager notify user that there’s an error with message ‘[given field] can't be empty!’
GIVEN that a user is not registered
WHEN a user create account with a valid first name, last name, email, username and password
THEN user account manager will make a request to server to create account
GIVEN that a user is not registered
WHEN a user create account with a valid first name, last name, email, username and password
THEN user account manager will navigate the user to welcome screen