-
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.
Feature View Pets Catalogue - implemented two scenarios
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 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
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
# Created by globox97 at 11/03/2024 | ||
Feature: View Pets Catalogue | ||
In order to view the Pets Catalogue | ||
In order to choose a pet to adopt from those available | ||
As a User | ||
I want to view the pet catalogue | ||
|
||
Background: | ||
Given there is a registered client with username "client" and password "password" and email "[email protected]" | ||
Given there is a registered volunteer with username "volunteer" and password "password" and email "[email protected]" | ||
And There is a Pet with breed "cat" | ||
And There is a Pet with breed "dog" | ||
|
||
|
||
Scenario: View Pets Catalogue without being logged in | ||
Given I'm not logged in | ||
|
@@ -27,7 +21,8 @@ Feature: View Pets Catalogue | |
Then The response code is 200 | ||
|
||
Scenario: View Pets Catalogue as a Shelter Volunteer | ||
Given I'm logged in as a Volunteer | ||
When I request the Catalogue | ||
Given There is a registered shelter volunteer with username "volunteer" and password "password" and email "[email protected]" | ||
Given I login with username "volunteer" and password "password" | ||
When I request the Catalogue for the specific shelter | ||
Then I'm shown the Catalogue from the shelter I work in | ||
And The response code is 200 |