mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
b169823a00
Remove "delete from live" duplicate action in favour of existing "unpublish" which is more consistent with current terminology Add pop-up verification to destructive actions Fix bug preventing side-by-side preview of archived pages Fix bug in reporting publishing of error pages Restoring a page without an available parent will restore to root
113 lines
4.2 KiB
Gherkin
113 lines
4.2 KiB
Gherkin
Feature: Search for a page
|
|
As an author
|
|
I want to search for a page in the CMS
|
|
So that I can efficiently navigate nested content structures
|
|
|
|
Background:
|
|
Given a "page" "Home"
|
|
And a "page" "About Us"
|
|
And a "page" "Contact Us"
|
|
And I am logged in with "ADMIN" permissions
|
|
And I go to "/admin/pages"
|
|
And I expand the "Filter" CMS Panel
|
|
|
|
Scenario: I can search for a page by its title
|
|
Given I fill in "Content" with "About Us"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "About Us" in the tree
|
|
But I should not see "Contact Us" in the tree
|
|
|
|
Scenario: I can search for a page by its type
|
|
Given a "Error Page" "My Error Page"
|
|
When I select "Error Page" from "Page Type"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "My Error Page" in the tree
|
|
But I should not see "Contact Us" in the tree
|
|
|
|
Scenario: I can search for a page by its oldest last edited date
|
|
Given a "page" "Recent Page"
|
|
And a "page" "Old Page" was last edited "7 days ago"
|
|
When I fill in "From" with "the date of 5 days ago"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "Recent Page" in the tree
|
|
But I should not see "Old Page" in the tree
|
|
|
|
Scenario: I can search for a page by its newest last edited date
|
|
Given a "page" "Recent Page"
|
|
And a "page" "Old Page" was last edited "7 days ago"
|
|
When I fill in "To" with "the date of 5 days ago"
|
|
And I press the "Apply Filter" button
|
|
Then I should not see "Recent Page" in the tree
|
|
But I should see "Old Page" in the tree
|
|
|
|
Scenario: I can include deleted pages in my search
|
|
Given a "page" "Deleted Page"
|
|
And the "page" "Deleted Page" is unpublished
|
|
And the "page" "Deleted Page" is deleted
|
|
When I press the "Apply Filter" button
|
|
Then I should not see "Deleted Page" in the tree
|
|
When I select "All pages, including archived" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "Deleted Page" in the tree
|
|
|
|
Scenario: I can include only deleted pages in my search
|
|
Given a "page" "Deleted Page"
|
|
And the "page" "Deleted Page" is unpublished
|
|
And the "page" "Deleted Page" is deleted
|
|
When I press the "Apply Filter" button
|
|
Then I should not see "Deleted Page" in the tree
|
|
When I select "Archived pages" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "Deleted Page" in the tree
|
|
And I should not see "About Us" in the tree
|
|
|
|
Scenario: I can include draft pages in my search
|
|
Given a "page" "Draft Page"
|
|
And the "page" "Draft Page" is not published
|
|
When I press the "Apply Filter" button
|
|
Then I should see "Draft Page" in the tree
|
|
When I select "Draft pages" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "Draft Page" in the tree
|
|
And I should not see "About Us" in the tree
|
|
|
|
Scenario: I can include changed pages in my search
|
|
When I click on "About Us" in the tree
|
|
Then I should see an edit page form
|
|
|
|
When I fill in the "Content" HTML field with "my new content"
|
|
And I press the "Save draft" button
|
|
Then I should see "Saved" in the "button#Form_EditForm_action_save" element
|
|
|
|
When I go to "/admin/pages"
|
|
And I expand the "Filter" CMS Panel
|
|
When I select "Modified pages" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "About Us" in the tree
|
|
And I should not see "Home" in the tree
|
|
|
|
Scenario: I can include live pages in my search
|
|
Given a "page" "Live Page"
|
|
And the "page" "Live Page" is published
|
|
And the "page" "Live Page" is deleted
|
|
When I press the "Apply Filter" button
|
|
Then I should not see "Live Page" in the tree
|
|
When I select "Live but removed from draft" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should see "Live Page" in the tree
|
|
And I should not see "About Us" in the tree
|
|
|
|
Scenario: I can include only live pages in my search
|
|
Given a "page" "Live Page"
|
|
And the "page" "Live Page" is published
|
|
And a "page" "Draft Page"
|
|
And a "page" "Draft Page" is unpublished
|
|
And a "page" "Deleted Page"
|
|
And the "page" "Deleted Page" is unpublished
|
|
And the "page" "Deleted Page" is deleted
|
|
|
|
When I select "Published pages" from "Pages"
|
|
And I press the "Apply Filter" button
|
|
Then I should not see "Draft Page" in the tree
|
|
And I should not see "Deleted Page" in the tree
|
|
But I should see "Live Page" in the tree |