Logo: Relish

  1. Sign in

Project: Sc-portal-bdd

Password and PIN Changes

Background
Given
We are on the user login page
Scenarios
  • @new_pwd_login
Verify valid portal password can be set successfully and login with new set portal password
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_password in the field1
And
We enter a new portal confirm_password in the field2
And
We save the change
And
We log out using the Sign Out link in the User Options page
And
We log in to the Self Care page with username and new_password
Then
We should not land on the login page
And
We should see the page with id="main"
Examples:
username password new_password confirm_password field1 field2
"user1" "12345" "cisco" "cisco" "password" "confirm password"
"user1" "cisco" "12345" "12345" "password" "confirm password"
  • @invalid_pwd
Verify invalid portal password
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_password in the field1
Then
We should see a tool tip in the user options page with error message message
Examples:
username password new_password confirm_password field1 field2 message
"user1" "12345" " " " " "password" "confirm password" "Password cannot contain spaces"
  • @pwd_not_match
Verify different confirm password cannot be set successfully
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_password in the field1
And
We enter a new portal confirm_password in the field2
And
We save the change
Then
We should see a tool tip in the user options page with error message message
Examples:
username password new_password confirm_password field1 field2 message
"user1" "12345" "cisco" "cico" "password" "confirm password" "Password must match"
  • @newpin
Verify login with new set pin
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_pin in the field1
And
We enter a new portal confirm_pin in the field2
And
We save the change
Then
The Phone Service PIN should be the new_pin in the database
Examples:
username password new_pin confirm_pin field1 field2
"user1" "12345" "2322" "2322" "pin" "confirm pin"
  • @invalid_pin
Verify non numeric pin or different confirm pin cannot be set successfully
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_pin in the field1
Then
We should see a tool tip in the user options page with error message message
Examples:
username password new_pin confirm_pin field1 field2 message
"user1" "12345" "1bcd" "1bcd" "pin" "confirm pin" "Phone Pin can only contain numbers"
  • @pin_not_match
Verify different confirm pin cannot be set successfully
When
We log in to the Self Care page with username and password
And
We go to the User Options page
And
We enter a new portal new_pin in the field1
And
We enter a new portal confirm_pin in the field2
And
We save the change
Then
We should see a tool tip in the user options page with error message message
Examples:
username password new_pin confirm_pin field1 field2 message
"user1" "12345" "2222" "222" "pin" "confirm pin" "Pin must match"

Last published over 4 years ago by Chris.