forked from refinery/refinerycms
-
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.
added passing cucumber tests for search (available in 'Images', 'File…
…s', 'Inquiries' and 'Pages')
- Loading branch information
Showing
6 changed files
with
64 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Feature: Search | ||
In order find content more quickly | ||
As an administrator | ||
I want to use search | ||
|
||
Background: | ||
Given I am a logged in refinery user | ||
|
||
Scenario Outline: Search Existing Item | ||
Given I have test <item> titled "<title>" | ||
When I go to the list of <location> | ||
And I fill in "search" with "<title>" | ||
And I press "Search" | ||
Then I should see "<title>" | ||
|
||
Examples: | ||
| item | title | location | | ||
|page |testitem|pages | | ||
|image |testitem|images | | ||
|file |testitem|files | | ||
|inquiry |testitem|inquiries | | ||
|inquiry |testitem|spam inquiries| | ||
|
||
Scenario Outline: Search Nonexisting Item | ||
Given I have no <item> | ||
When I go to the list of <location> | ||
And I fill in "search" with "nonexisting" | ||
And I press "Search" | ||
Then I should see "Sorry, no results found" | ||
|
||
Examples: | ||
| item | location | | ||
|pages |pages | | ||
|images |images | | ||
|files |files | | ||
|inquiries|inquiries | | ||
|inquiries|spam inquiries| |
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
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
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