Logo: Relish

  1. Sign in

Project: Sc-portal-bdd

SC Login

As a self-care user, in order to access other self-care pages I need to correctly login

Background
Given
We are on the user login page
Scenarios
  • @good_credentials
Verify that we can login succesfully
When
We log in to the Self Care page with username and password
Then
The logout link should be present
And
We should see the page with id="main"
Examples: Correct Credentials
username password
"user1" "cisco"
"UsER1" "cisco"
  • @missing_credentials
Verify that we cannot login with empty username and/or password
When
We log in to the Self Care page with username and password
Then
The field is state
And
We should see a tooltip that says info
Examples: Empty Username and/or Empty Password
username password field state info
"" "" "" "" "Username is required"
"" "cisco" "password field" "NonEmpty" "Username is required"
"user1" "" "username field" "NonEmpty" "Password is required"
  • @invalid_credentials
Verify that we cannot login with wrong credentials
When
We log in to the Self Care page with username and password
And
We should see an error message message
Examples: Wrong Credentials
username password message
"user" "wrong" "You entered an incorrect username or password. Please try again."
  • @logout
Verify that logout returns me to the login page
When
We log in to the Self Care page with username and password
And
We log out
Then
We should land on the login page
And
The field1 is state
And
The field2 is state
Examples: Correct Credentials
username password field1 field2 state
"user1" "cisco" "username field" "password field" ""
  • @relogin
Verify that can re-login after logout
When
We log in to the Self Care page with username1 and password
And
We log out
And
We log in to the Self Care page with username2 and password
Then
We should not land on the login page
And
We should see the page with id="main"
And
The logout link should be present
Examples: Relogin with Correct Credentials
username1 username2 password
"user1" "user1" "cisco"
"user1" "user2" "cisco"

Last published over 4 years ago by Chris.