From da1a875c4fbf05fd11684cf9c869a52b2ce8f12b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 21 Oct 2013 09:33:45 +0200 Subject: [PATCH] Revert "Moved Behat reports tests to module" This reverts commit 50a48aa25dfd65a8f823780df93b6ee86256474a. The test in question relies on SiteTree data *as well* as the reports module, so needs to be placed here. --- tests/behat/features/view-reports.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/behat/features/view-reports.feature diff --git a/tests/behat/features/view-reports.feature b/tests/behat/features/view-reports.feature new file mode 100644 index 00000000..837eb66a --- /dev/null +++ b/tests/behat/features/view-reports.feature @@ -0,0 +1,18 @@ +Feature: View Reports + As an author + I want to review aggregate reports on pages + So that I can keep an overview on the health of my website data + + Background: + Given a "page" "Empty Page" + And a "page" "Filled Page" with "Content"="Some Content" + And I am logged in with "ADMIN" permissions + And I go to "/admin/reports" + + Scenario: I can view the "Pages with no content" report + When I follow "Pages with no content" + Then I should see "Empty Page" + But I should not see "Filled Page" + When I follow "Empty Page" + Then I should see an edit page form + And the "Page name" field should contain "Empty Page" \ No newline at end of file