-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdatabase_filters.feature
41 lines (37 loc) · 2.11 KB
/
database_filters.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Feature: As a team leader from EngineerWithouBoarder San Francisco,
I want to navigate through potential volunteers who have signed up with their detailed information,
so that I can optimize my volunteer search to find the best fit volunteer
Background: volunteers added to the database
Given the following volunteers exist:
| first_name | last_name | phone | email | city | state | status | major | languages |
| jio | calderon | 5556667777 | jio@calderon.com | alameda | CA | Student | computer science | tagalog, spanish |
| daniel | anderson | 5105105999 | daniel@anderson.com | berkeley | CA | Working | computer science | english, spanish |
| carmen | tang | 1231236666 | carmen@tang.com | new york | NY | Student | computer science | english, french |
| lawrence | vo | 2223334432 | lawrence@vo.com | berkeley | CA | Student | potato farming | english, french |
| kevin | chen | 1234562342 | kevin@chen.com | new york | NY | Retired | potato farming | english, french |
| anthony | tran | 5523423422 | anthony@tran.com | las vegas | CA | Retired | potato farming | english, spanish |
And I am on the login page
And I am log in as an admin
And I should see "Login successful!"
And I should see "View All Volunteers"
And I follow "View All Volunteers"
And I should see "Listing Volunteers"
Scenario: Check that state filtering works
When I select "CA" from "state"
And I press "Refresh"
Then I should see "jio calderon"
And I should not see "carmen tang"
Scenario: Check filtering for status
When I select "Student" from "status"
And I press "Refresh"
Then I should see "jio calderon"
And I should see "lawrence vo"
And I should see "carmen tang"
And I should not see "kevin chen"
And I should not see "anthony tran"
Scenario: Check that multiple filtering works
When I select "CA" from "state"
And I select "Student" from "status"
And I press "Refresh"
Then I should see "jio calderon"
Then I should not see "anthony tran"