Merge pull request #2255 from open-sausages/pulls/4/a-test-for-another-time

Disable page search test scenarios involving date due to localisation issue
This commit is contained in:
Robbie Averill 2018-09-07 09:21:32 +02:00 committed by GitHub
commit d0cd066ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,23 +26,25 @@ Feature: Search for a page
Then I should see "My Virtual Page" in the cms list Then I should see "My Virtual Page" in the cms list
But I should not see "Contact Us" in the cms list But I should not see "Contact Us" in the cms list
Scenario: I can search for a page by its oldest last edited date # BUG: https://github.com/silverstripe/silverstripe-admin/issues/631
Given a "page" "Recent Page" # Scenario: I can search for a page by its oldest last edited date
And a "page" "Old Page" was last edited "7 days ago" # Given a "page" "Recent Page"
When I press the "Advanced" button # And a "page" "Old Page" was last edited "7 days ago"
And I fill in "From" with "the date of 5 days ago" # When I press the "Advanced" button
And I press the "Search" button # And I fill in "From" with "the date of 5 days ago"
Then I should see "Recent Page" in the cms list # And I press the "Search" button
But I should not see "Old Page" in the cms list # Then I should see "Recent Page" in the cms list
# But I should not see "Old Page" in the cms list
Scenario: I can search for a page by its newest last edited date # BUG: https://github.com/silverstripe/silverstripe-admin/issues/631
Given a "page" "Recent Page" # Scenario: I can search for a page by its newest last edited date
And a "page" "Old Page" was last edited "7 days ago" # Given a "page" "Recent Page"
When I press the "Advanced" button # And a "page" "Old Page" was last edited "7 days ago"
And I fill in "To" with "the date of 5 days ago" # When I press the "Advanced" button
And I press the "Search" button # And I fill in "To" with "the date of 5 days ago"
Then I should not see "Recent Page" in the cms list # And I press the "Search" button
But I should see "Old Page" in the cms list # Then I should not see "Recent Page" in the cms list
# But I should see "Old Page" in the cms list
Scenario: I can include deleted pages in my search Scenario: I can include deleted pages in my search
Given a "page" "Deleted Page" Given a "page" "Deleted Page"