Behat: Fixed indentation (no functional changes)

Using tabs consistently
This commit is contained in:
Ingo Schommer 2013-06-07 10:21:05 +02:00
parent b3f31d8e6f
commit 5476bbeefb
6 changed files with 122 additions and 122 deletions

View File

@ -3,17 +3,17 @@ Feature: Access the User Help
I want to access the user help in the CMS I want to access the user help in the CMS
So that I can get help about the CMS features So that I can get help about the CMS features
@javascript @javascript
Scenario: I can get to http://3.0.userhelp.silverstripe.org from anywhere in the CMS Scenario: I can get to http://3.0.userhelp.silverstripe.org from anywhere in the CMS
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 "Help" in the "#Menu-Help" element Then I should see "Help" in the "#Menu-Help" element
Given I go to "/admin/settings"
Then I should see "Help" in the "#Menu-Help" element
Given I go to "http://3.0.userhelp.silverstripe.org" Given I go to "/admin/settings"
Then I should see "SilverStripe User Help!" Then I should see "Help" in the "#Menu-Help" element
#Given I click "Help" in the "#Menu-Help" element Given I go to "http://3.0.userhelp.silverstripe.org"
#Then the url should match "http://3.0.userhelp.silverstripe.org" Then I should see "SilverStripe User Help!"
#Given I click "Help" in the "#Menu-Help" element
#Then the url should match "http://3.0.userhelp.silverstripe.org"

View File

@ -1,14 +1,14 @@
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
So that I can grow my website So that I can grow my website
@javascript @javascript
Scenario: I can create a page from the pages section Scenario: I can create a page from the pages section
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"
And I should see a "Add new" button in CMS Content Toolbar And I should see a "Add new" button in CMS Content Toolbar
When I press the "Add new" button When I press the "Add new" button
And I check "Page" And I check "Page"
And I press the "Create" button And I press the "Create" button
Then I should see an edit page form Then I should see an edit page form

View File

@ -1,29 +1,29 @@
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 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
@javascript @javascript
Scenario: I can open a page for editing from the pages tree Scenario: I can open a page for editing from the pages tree
When I follow "About Us" When I follow "About Us"
Then I should see an edit page form Then I should see an edit page form
@javascript @javascript
Scenario: I can edit title and content and see the changes on draft Scenario: I can edit title and content and see the changes on draft
When I follow "About Us" When I follow "About Us"
Then I should see an edit page form Then I should see an edit page form
When I fill in "Title" with "About Us!" When I fill in "Title" with "About Us!"
And I fill in the "Content" HTML field with "my new content" And I fill in the "Content" HTML field with "my new content"
And I press the "Save draft" button And I press the "Save draft" button
Then I should see "Saved" in the "button#Form_EditForm_action_save" element Then I should see "Saved" in the "button#Form_EditForm_action_save" element
When I follow "About Us" When I follow "About Us"
Then the "Title" field should contain "About Us!" Then the "Title" field should contain "About Us!"
And the "Content" HTML field should contain "my new content" And the "Content" HTML field should contain "my new content"

View File

@ -1,46 +1,46 @@
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: Background:
Given a "page" "About Us" 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
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
When I follow "About Us" When I follow "About Us"
And I set the CMS mode to "Preview mode" And I set the CMS mode to "Preview mode"
Then I can see the preview panel Then I can see the preview panel
And the preview contains "About Us" And the preview contains "About Us"
Then I set the CMS mode to "Edit mode" Then I set the CMS mode to "Edit mode"
# TODO: # TODO:
# - Only tests correctly on fresh database # - Only tests correctly on fresh database
# - We should continue testing against it after we have fixtures ready # - We should continue testing against it after we have fixtures ready
@javascript @javascript
Scenario: I can see an updated preview when editing content Scenario: I can see an updated preview when editing content
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
When I follow "About Us" When I follow "About Us"
And I fill in the "Content" HTML field with "first content" And I fill in the "Content" HTML field with "first content"
And I press the "Publish" button And I press the "Publish" button
And I fill in the "Content" HTML field with "my new content" And I fill in the "Content" HTML field with "my new content"
And I press the "Save draft" button And I press the "Save draft" button
And I set the CMS mode to "Preview mode" And I set the CMS mode to "Preview mode"
When I switch the preview to "Published" When I switch the preview to "Published"
Then the preview does not contain "my new content" Then the preview does not contain "my new content"
And the preview contains "first content" And the preview contains "first content"
When I switch the preview to "Draft" When I switch the preview to "Draft"
Then the preview does not contain "first content" Then the preview does not contain "first content"
And the preview contains "my new content" And the preview contains "my new content"
And I set the CMS mode to "Edit mode" And I set the CMS mode to "Edit mode"
Then I should see an edit page form Then I should see an edit page form

View File

@ -1,21 +1,21 @@
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: Background:
Given a "page" "About Us" Given a "page" "About Us"
And a "page" "Contact 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
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
And I should see "Contact Us" in CMS Tree And I should see "Contact Us" in CMS Tree
When I expand the "Filter" CMS Panel When I expand the "Filter" CMS Panel
And I fill in "Content" with "About Us" And I fill in "Content" with "About Us"
And I press the "Apply Filter" button And I press the "Apply Filter" button
Then I should see "About Us" in CMS Tree Then I should see "About Us" in CMS Tree
But I should not see "Contact Us" in CMS Tree But I should not see "Contact Us" in CMS Tree

View File

@ -1,26 +1,26 @@
Feature: Edit site wide title and tagline Feature: Edit site wide title and tagline
As a site administrator As a site administrator
I want to configure the sites title and tagline I want to configure the sites title and tagline
So that I dont have to change any templates So that I dont have to change any templates
Background: Background:
Given a "page" "home" Given a "page" "home"
@javascript @javascript
Scenario: I can edit my Site title and Tagline Scenario: I can edit my Site title and Tagline
Given I am logged in with "ADMIN" permissions Given I am logged in with "ADMIN" permissions
And I go to "/admin/settings" And I go to "/admin/settings"
Then I should see an edit page form Then I should see an edit page form
And I should see "Site title" And I should see "Site title"
And I should see "Tagline" And I should see "Tagline"
And I should see "Theme" And I should see "Theme"
When I fill in "Site title" with "Test Site" When I fill in "Site title" with "Test Site"
And I fill in "Tagline" with "Site is under construction" And I fill in "Tagline" with "Site is under construction"
And I press the "Save" button And I press the "Save" button
And I reload the page And I reload the page
Then I should see "Test Site" in the ".cms-logo" element Then I should see "Test Site" in the ".cms-logo" element
When I go to "/home" When I go to "/home"
Then I should see "Test Site" Then I should see "Test Site"
And I should see "Site is under construction" And I should see "Site is under construction"