2012-11-09 19:15:54 +01:00
|
|
|
Feature: Search for a page
|
2013-06-07 10:21:05 +02:00
|
|
|
As an author
|
|
|
|
I want to search for a page in the CMS
|
|
|
|
So that I can efficiently navigate nested content structures
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
Background:
|
2013-09-13 18:46:23 +02:00
|
|
|
Given a "page" "Home"
|
|
|
|
And a "page" "About Us"
|
2013-06-07 10:21:05 +02:00
|
|
|
And a "page" "Contact Us"
|
2013-09-13 18:46:23 +02:00
|
|
|
And I am logged in with "ADMIN" permissions
|
|
|
|
And I go to "/admin/pages"
|
|
|
|
And I expand the "Filter" CMS Panel
|
2013-06-05 13:30:15 +02:00
|
|
|
|
2013-06-07 10:21:05 +02:00
|
|
|
Scenario: I can search for a page by its title
|
2013-09-13 18:46:23 +02:00
|
|
|
Given I fill in "Content" with "About Us"
|
|
|
|
And I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should see "About Us" in the tree
|
|
|
|
But I should not see "Contact Us" in the tree
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2013-09-13 18:46:23 +02:00
|
|
|
Scenario: I can search for a page by its type
|
2013-11-15 14:43:55 +01:00
|
|
|
Given a "Error Page" "My Error Page"
|
|
|
|
When I select "Error Page" from "Page Type"
|
2013-06-07 10:21:05 +02:00
|
|
|
And I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should see "My Error Page" in the tree
|
|
|
|
But I should not see "Contact Us" in the tree
|
2013-09-13 18:46:23 +02:00
|
|
|
|
|
|
|
Scenario: I can search for a page by its oldest last edited date
|
|
|
|
Given a "page" "Recent Page"
|
2013-11-15 14:43:55 +01:00
|
|
|
And a "page" "Old Page" was last edited "7 days ago"
|
|
|
|
When I fill in "From" with "the date of 5 days ago"
|
2013-09-13 18:46:23 +02:00
|
|
|
And I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should see "Recent Page" in the tree
|
|
|
|
But I should not see "Old Page" in the tree
|
2013-09-13 18:46:23 +02:00
|
|
|
|
|
|
|
Scenario: I can search for a page by its newest last edited date
|
|
|
|
Given a "page" "Recent Page"
|
2013-11-15 14:43:55 +01:00
|
|
|
And a "page" "Old Page" was last edited "7 days ago"
|
|
|
|
When I fill in "To" with "the date of 5 days ago"
|
2013-09-13 18:46:23 +02:00
|
|
|
And I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should not see "Recent Page" in the tree
|
|
|
|
But I should see "Old Page" in the tree
|
2013-09-13 18:46:23 +02:00
|
|
|
|
2013-11-15 14:43:55 +01:00
|
|
|
|
2013-09-13 18:46:23 +02:00
|
|
|
Scenario: I can include deleted pages in my search
|
|
|
|
Given a "page" "Deleted Page"
|
2013-11-15 14:43:55 +01:00
|
|
|
And the "page" "Deleted Page" is deleted
|
2013-09-13 18:46:23 +02:00
|
|
|
When I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should not see "Deleted Page" in the tree
|
2013-11-15 14:43:55 +01:00
|
|
|
When I select "All pages, including deleted" from "Pages"
|
2013-09-13 18:46:23 +02:00
|
|
|
And I press the "Apply Filter" button
|
2013-09-14 00:21:29 +02:00
|
|
|
Then I should see "Deleted Page" in the tree
|