Logo: Relish

  1. Sign in

Project: Test-project

User Login

Provide an login form for unauthenticated users

Scenarios
Redirect to login form if not logged in
Given
I am not logged in
When
I visit the home page
Then
I should be redirected to the login page
Show home page when logged in
Given
I am logged in
When
I visit the home page
Then
I should be on the home page
Display error message if user does not enter username
Given
I am on the login page
And
I have entered my password but not my username
When
I submit my login
Then
the validation message "User Name is required" should be displayed
Display error message if user does not enter password
Given
I am on the login page
And
I have entered my username but not my password
When
I submit my login
Then
the validation message "Password is required" should be displayed

Last published about 5 years ago by egorski.