Created
November 6, 2009 13:21
-
-
Save rainchen/227983 to your computer and use it in GitHub Desktop.
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
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