Skip to content

Commit

Permalink
[FIX] Test RegisterShelterCertificate.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogliarte committed Apr 5, 2024
1 parent c3b1653 commit 0eeb3e0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

0 comments on commit 0eeb3e0

Please sign in to comment.