Skip to content

Instantly share code, notes, and snippets.

@rainchen
Created November 6, 2009 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainchen/227983 to your computer and use it in GitHub Desktop.
Save rainchen/227983 to your computer and use it in GitHub Desktop.
Scenario: Searching pages
Given I create a sub page "About us" for "/"
And I create a sub page "Contact us" for "About us"
When I go to "/pages/admin"
Then I should see "Search pages"
When I focus on the form which "action" is "/pages/search"
And I select "title" from "scope"
And I fill in "query" with "us"
And I press "search"
Then I should see "About us"
And I should see "Contact us"
When I focus on the form which "action" is "/pages/search"
And I select "title" from "scope"
And I fill in "query" with "Contact"
And I press "search"
Then I should see "Contact us"
And I should not see "About us"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment