ENHANCEMENT: Updated automatic regression tests (Salad) (from r101871)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111649 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-04 06:11:04 +00:00
parent 7316586899
commit e33bfb2755
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|