Logo: Relish

  1. Sign in

Project: Vibe-app

Login

As a registered user
I need to login to the site
So that I can access protected pages and resources

Scenarios
Login with valid credentials and return url
Given
I am not logged in
When
I login with valid credentials
Then
I am redirected to the return url
And
I am logged in to the site
Login with valid credentials and no return url
Given
I am not logged in
When
I login with valid credentials
Then
I am redirected to the home page
And
I am logged in to the site
Login with invalid credentials
Given
I am not logged in
When
I login with invalid credentials
Then
I receive an error message to say username or password are invalid
And
I am not logged in to the site
Login with invalid credentials too often
Given
I am not logged in
When
I login with invalid credentials five times
Then
I receive an error message to say that I am locked out
And
my account is flagged as locked
And
I am not logged in to the site
Login with valid credentials and locked out
Given
I am not logged in
And
my account is locked
When
I login with valid credentials
Then
I receive an error message to say that I am locked out
And
I am not logged in to the site
I have forgotten my password
Given
I am not logged in
When
I answer my secret question correctly
Then
I can set myself a new password
And
I must confirm this password
Accessing a protected page before login
Given
I am not logged in
When
I am attempting to access a protected page
Then
I am redirected to the login page
And
I am not logged in to the site

Last published almost 7 years ago by Angus Todd.