Logo: Relish

  1. Sign in

Project: Angus-playground

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
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 5 years ago by Angus Todd.