From 47d7a19a23254bf5b93717734b8f5aea64202161 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 5 Jun 2013 13:30:15 +0200 Subject: [PATCH] Behat: Replace @database-defaults with explicit fixtures --- tests/behat/features/create-a-page.feature | 1 - tests/behat/features/edit-a-page.feature | 2 +- tests/behat/features/preview-a-page.feature | 4 +++- tests/behat/features/search-for-a-page.feature | 5 ++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/behat/features/create-a-page.feature b/tests/behat/features/create-a-page.feature index a1df9adc..5baa46fe 100644 --- a/tests/behat/features/create-a-page.feature +++ b/tests/behat/features/create-a-page.feature @@ -1,4 +1,3 @@ -@database-defaults Feature: Create a page As an author I want to create a page in the CMS diff --git a/tests/behat/features/edit-a-page.feature b/tests/behat/features/edit-a-page.feature index cf7684f2..abf36e5e 100644 --- a/tests/behat/features/edit-a-page.feature +++ b/tests/behat/features/edit-a-page.feature @@ -1,10 +1,10 @@ -@database-defaults Feature: Edit a page As an author I want to edit a page in the CMS So that I correct errors and provide new information Background: + Given a page "About Us" Given I am logged in with "ADMIN" permissions And I go to "/admin/pages" Then I should see "About Us" in CMS Tree diff --git a/tests/behat/features/preview-a-page.feature b/tests/behat/features/preview-a-page.feature index 9f2d75c6..4d4013ba 100644 --- a/tests/behat/features/preview-a-page.feature +++ b/tests/behat/features/preview-a-page.feature @@ -1,9 +1,11 @@ -@database-defaults Feature: Preview a page As an author I want to preview the page I'm editing in the CMS So that I can see how it would look like to my visitors + Background: + Given a page "About Us" + @javascript Scenario: I can show a preview of the current page from the pages section Given I am logged in with "ADMIN" permissions diff --git a/tests/behat/features/search-for-a-page.feature b/tests/behat/features/search-for-a-page.feature index 23e51931..267dbacb 100644 --- a/tests/behat/features/search-for-a-page.feature +++ b/tests/behat/features/search-for-a-page.feature @@ -1,9 +1,12 @@ -@database-defaults 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 "About Us" + And a page "Contact Us" + @javascript Scenario: I can search for a page by its title Given I am logged in with "ADMIN" permissions