Skip to content

Commit

Permalink
login response is now generic
Browse files Browse the repository at this point in the history
  • Loading branch information
xipi3000 committed Mar 13, 2024
1 parent ec72d55 commit 3f76052
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/test/resources/features/LoginUser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,23 @@ Feature: Login User
Given There isn't registered user with username "anonymous"
And I'm not logged in
When I login with username "anonymous" and password "password"
Then The response code is 404
And The error message is "wrong user or password"
Then The response code is 401
#And The error message is "wrong user or password"

Scenario: Login with a incorrect password
Given There is a registered user with username "user" and password "password"
And I'm not logged in
When I login with username "user" and password "anonymous"
Then The response code is 404
And The error message is "wrong user or password"
Then The response code is 401
#And The error message is "wrong user or password"

Scenario: Login with empty username
Given I'm not logged in
When I login with username "" and password "password"
Then The response code is 404
And The error message is "must not be blank"
Then The response code is 401

Scenario: Login with empty password
Given There is a registered user with username "user" and password "password"
And I'm not logged in
When I login with username "user" and password ""
Then The response code is 400
And The error message is "must not be blank"
Then The response code is 401

0 comments on commit 3f76052

Please sign in to comment.