Behat: Replace @database-defaults with explicit fixtures

This commit is contained in:
Ingo Schommer 2013-06-05 13:30:15 +02:00
parent e7cc08f6ae
commit 47d7a19a23
4 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,3 @@
@database-defaults
Feature: Create a page Feature: Create a page
As an author As an author
I want to create a page in the CMS I want to create a page in the CMS

View File

@ -1,10 +1,10 @@
@database-defaults
Feature: Edit a page Feature: Edit a page
As an author As an author
I want to edit a page in the CMS I want to edit a page in the CMS
So that I correct errors and provide new information So that I correct errors and provide new information
Background: Background:
Given a page "About Us"
Given I am logged in with "ADMIN" permissions Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages" And I go to "/admin/pages"
Then I should see "About Us" in CMS Tree Then I should see "About Us" in CMS Tree

View File

@ -1,9 +1,11 @@
@database-defaults
Feature: Preview a page Feature: Preview a page
As an author As an author
I want to preview the page I'm editing in the CMS 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 So that I can see how it would look like to my visitors
Background:
Given a page "About Us"
@javascript @javascript
Scenario: I can show a preview of the current page from the pages section Scenario: I can show a preview of the current page from the pages section
Given I am logged in with "ADMIN" permissions Given I am logged in with "ADMIN" permissions

View File

@ -1,9 +1,12 @@
@database-defaults
Feature: Search for a page Feature: Search for a page
As an author As an author
I want to search for a page in the CMS I want to search for a page in the CMS
So that I can efficiently navigate nested content structures So that I can efficiently navigate nested content structures
Background:
Given a page "About Us"
And a page "Contact Us"
@javascript @javascript
Scenario: I can search for a page by its title Scenario: I can search for a page by its title
Given I am logged in with "ADMIN" permissions Given I am logged in with "ADMIN" permissions