-
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.
[FIX] Test RegisterShelterCertificate.feature
- Loading branch information
1 parent
c3b1653
commit 0eeb3e0
Showing
1 changed file
with
1 addition
and
7 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 |
---|---|---|
|
@@ -6,13 +6,6 @@ Feature: Register Shelter Certificate | |
Background: | ||
Given There is a registered user with username "username" and password "password" and email "[email protected]" | ||
|
||
Scenario: Register existing shelter certificate | ||
Given I can login with username "username" and password "password" | ||
# And I am a user with role "ShelterVolunteer" Temporarily commented because we need to do first the Role tests | ||
Given There is a registered shelter certificate with id "1" for shelter with name "existing_shelter" | ||
When I register a new shelter certificate with id "2" for shelter with name "existing_shelter" | ||
Then The response code is 409 | ||
|
||
Scenario: Register shelter certificate with no permission | ||
Given I can login with username "username" and password "password" | ||
# And I am a user with role "User" Temporarily commented because we need to do first the Role tests | ||
|
@@ -29,6 +22,7 @@ Feature: Register Shelter Certificate | |
|
||
Scenario: Register shelter certificate with valid attributes | ||
Given I can login with username "username" and password "password" | ||
And I register a new shelter with name "new_shelter", email "[email protected]", mobile "+34 123 456 789" and isActive True | ||
When I register a new shelter certificate with id "1" for shelter with name "new_shelter" | ||
Then The response code is 201 | ||
And It has been created a shelter certificate with id "1" for shelter with name "new_shelter" |