Logo: Relish

  1. Sign in

Project: Decent-authentication

User signs in

In order to prevent unauthorized users from accessing content
As a user attempting to view any page
I want to sign in

  • An input to provide an email address is visible
  • An input to provide a password is visible
  • A sign in button is visible
  • Clicking button authorizes me
  • System takes me to the home page
Scenarios
empty sign in form submission
Given
I am on the sign in page
And
I press "Sign in"
Then
I should see "Invalid sign in attempt"
invalid credentials
Given
the following user:
email [email protected]
password welcome
password_confirmation welcome
And
I am on the sign in page
When
I fill in "Email" with "[email protected]"
And
I fill in "Password" with "password"
And
I press "Sign in"
Then
I should see "Invalid sign in attempt"
valid sign in attempt
Given
I am signed in
Then
I should see "Sign out"
And
I should be on the home page

Last published almost 6 years ago by leesmith.