ENHANCEMENT: Updated automatic regression tests (Salad)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101871 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Luke Hudson 2010-03-30 05:37:08 +00:00 committed by Sam Minnee
parent 1d50542d6f
commit 5ba4e2d09c
4 changed files with 12 additions and 9 deletions

View File

@ -11,7 +11,7 @@ Feature: Log in
Then I am sent to Security/login
Scenario: valid login
When I fill out the log in form with user "admin" and password "password"
When I fill out the login form with user "admin" and password "password"
Then I see "You're logged in as"
Scenario: no password login
@ -34,3 +34,6 @@ Feature: Log in
And I click the "Log in" button
Then I am sent to admin
Scenario: Re-login
Given I visit Security/logout
Then I log into the CMS as admin

View File

@ -7,14 +7,14 @@ Feature: Log out
Given I log into the CMS as admin
And I click the "Log out" link
When I visit admin/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."
When I visit admin/assets/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."
When I visit admin/comments/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."
When I visit admin/reports/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."
When I visit admin/security/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."
When I visit admin/subsites/
Then I see "Enter your username and password to access the CMS."
Then I see "Please choose an authentication method and enter your credentials to access the CMS."

View File

@ -36,7 +36,7 @@ Given /I load the "(.*)" root-level page/ do |nav|
end
Given /I load the root node/ do
Given 'I click the "admin/0" link'
Given 'I click the "admin/show/root" link'
end
Given /create a new page$/i do

View File

@ -2,7 +2,7 @@
# Log in
Given /log in as (.*)$/ do |user|
Given "I fill out the log in form with user \"#{user}\" and password \"password\""
And 'I see "Your are logged in as"'
And 'I see "You\'re logged in as"'
end
Given /log into the CMS as (.*)/ do |user|