Skip to content

Instantly share code, notes, and snippets.

@knwang
Created October 7, 2011 21:25
Show Gist options
  • Save knwang/1271384 to your computer and use it in GitHub Desktop.
Save knwang/1271384 to your computer and use it in GitHub Desktop.
Proofing_oven: User searches candidates by name feature
@http://www.pivotaltracker.com/story/show/16870693 @candidates @filtering
Feature: User searches for candidate by name
In order to locate a candidate
As a user viewing candidates
I want search by name
- Candidates page displays text field for search
- Submitting form filters on first and last name
Background:
Given the following candidates:
| First Name | Last Name |
| Dwight | Howard |
| Chris | Paul |
And I am on the candidate list page
Scenario: found candidate
When I fill in "search" with "Chris Paul"
And I press "Search"
Then I should see "Chris Paul"
And I should not see "Dwight Howard"
Scenario: couldn't find candidates
When I fill in "search" with "Yao Ming"
And I press "Search"
Then I should not see "Chris Paul"
And I should not see "Dwight Howard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment