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
So that I can get help about the CMS features
@javascript
Scenario: I can get to http://3.0.userhelp.silverstripe.org from anywhere in the CMS
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
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
@javascript
Scenario: I can get to http://3.0.userhelp.silverstripe.org from anywhere in the CMS
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
Then I should see "Help" in the "#Menu-Help" element
Given I go to "http://3.0.userhelp.silverstripe.org"
Then I should see "SilverStripe User Help!"
Given I go to "/admin/settings"
Then I should see "Help" in the "#Menu-Help" element
#Given I click "Help" in the "#Menu-Help" element
#Then the url should match "http://3.0.userhelp.silverstripe.org"
Given I go to "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
As an author
I want to create a page in the CMS
So that I can grow my website
As an author
I want to create a page in the CMS
So that I can grow my website
@javascript
Scenario: I can create a page from the pages section
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
And I should see a "Add new" button in CMS Content Toolbar
When I press the "Add new" button
And I check "Page"
And I press the "Create" button
Then I should see an edit page form
@javascript
Scenario: I can create a page from the pages section
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
And I should see a "Add new" button in CMS Content Toolbar
When I press the "Add new" button
And I check "Page"
And I press the "Create" button
Then I should see an edit page form

View File

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

View File

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

View File

@ -1,21 +1,21 @@
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
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"
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
And I go to "/admin/pages"
Then I should see "About Us" in CMS Tree
And I should see "Contact Us" in CMS Tree
@javascript
Scenario: I can search for a page by its title
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
Then I should see "About Us" in CMS Tree
And I should see "Contact Us" in CMS Tree
When I expand the "Filter" CMS Panel
And I fill in "Content" with "About Us"
And I press the "Apply Filter" button
Then I should see "About Us" in CMS Tree
But I should not see "Contact Us" in CMS Tree
When I expand the "Filter" CMS Panel
And I fill in "Content" with "About Us"
And I press the "Apply Filter" button
Then I should see "About 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
As a site administrator
I want to configure the sites title and tagline
So that I dont have to change any templates
As a site administrator
I want to configure the sites title and tagline
So that I dont have to change any templates
Background:
Given a "page" "home"
Background:
Given a "page" "home"
@javascript
Scenario: I can edit my Site title and Tagline
Given I am logged in with "ADMIN" permissions
And I go to "/admin/settings"
Then I should see an edit page form
And I should see "Site title"
And I should see "Tagline"
And I should see "Theme"
@javascript
Scenario: I can edit my Site title and Tagline
Given I am logged in with "ADMIN" permissions
And I go to "/admin/settings"
Then I should see an edit page form
And I should see "Site title"
And I should see "Tagline"
And I should see "Theme"
When I fill in "Site title" with "Test Site"
And I fill in "Tagline" with "Site is under construction"
And I press the "Save" button
And I reload the page
Then I should see "Test Site" in the ".cms-logo" element
When I fill in "Site title" with "Test Site"
And I fill in "Tagline" with "Site is under construction"
And I press the "Save" button
And I reload the page
Then I should see "Test Site" in the ".cms-logo" element
When I go to "/home"
Then I should see "Test Site"
And I should see "Site is under construction"
When I go to "/home"
Then I should see "Test Site"
And I should see "Site is under construction"