-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Feature: Login User | ||
In order to use the app | ||
As a user | ||
I want to login myself to access it | ||
|
||
Scenario: Login already registered user | ||
Given I'm not logged in | ||
When I enter my registered username "user" with password "password" | ||
Then The response code is 201 | ||
And I am successfully logged in | ||
|
||
Scenario: Login with a non existing user | ||
Given I'm not logged in | ||
When I enter username "sdafddsaf" and password "password" | ||
Then The response code is 404 | ||
And I am prompt a error saying that the username or password are wrong | ||
|
||
Scenario: Login with a incorrect password | ||
Given I'm not logged in | ||
When I login with username "user" and password "afsdfsaafs" | ||
Then The response code is 404 | ||
And I am prompt a error saying that the username or password are wrong | ||
|
||
Scenario: Login with empty username | ||
Given I'm not logged in | ||
When I log in with username "" and password "passsword" | ||
Then The response code is 406 | ||
And The error message is "must not be blank" | ||
|
||
Scenario: Login with empty password | ||
Given I'm not logged in | ||
When I log in with username "user" and password "" | ||
Then The response code is 406 | ||
And The error message is "must not be blank" |