From 0437c0597d4682c3801c582d5c14b86f8686b813 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 2 Oct 2013 17:12:43 +0200 Subject: [PATCH] More resilient Behat checks for "page not found" Wrapping in a step to capture cases where the ErrorPage defaults haven't been generated, and the default ModelAsController message shows which is slightly different wording. --- tests/behat/features/publish-a-page.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/behat/features/publish-a-page.feature b/tests/behat/features/publish-a-page.feature index 5a1d3337..ce5927c1 100644 --- a/tests/behat/features/publish-a-page.feature +++ b/tests/behat/features/publish-a-page.feature @@ -10,7 +10,7 @@ So that only high quality changes are seen by our visitors @javascript Scenario: I can have a unpublished version of a page that is not publicly available Given I go to "/my-page" - Then I should see "Page not found" + Then the page can't be found @javascript Scenario: I can publish a previously never published page @@ -68,7 +68,7 @@ So that only high quality changes are seen by our visitors Then I press the "Log out" button And I go to "/hello" - Then I should see "Page not found" + Then the page can't be found @javascript Scenario: I can delete a page from live and draft stage to completely remove it