mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
7316586899
commit
e33bfb2755
@ -11,7 +11,7 @@ Feature: Log in
|
|||||||
Then I am sent to Security/login
|
Then I am sent to Security/login
|
||||||
|
|
||||||
Scenario: valid 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"
|
Then I see "You're logged in as"
|
||||||
|
|
||||||
Scenario: no password login
|
Scenario: no password login
|
||||||
@ -34,3 +34,6 @@ Feature: Log in
|
|||||||
And I click the "Log in" button
|
And I click the "Log in" button
|
||||||
Then I am sent to admin
|
Then I am sent to admin
|
||||||
|
|
||||||
|
Scenario: Re-login
|
||||||
|
Given I visit Security/logout
|
||||||
|
Then I log into the CMS as admin
|
||||||
|
@ -7,14 +7,14 @@ Feature: Log out
|
|||||||
Given I log into the CMS as admin
|
Given I log into the CMS as admin
|
||||||
And I click the "Log out" link
|
And I click the "Log out" link
|
||||||
When I visit admin/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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."
|
@ -36,7 +36,7 @@ Given /I load the "(.*)" root-level page/ do |nav|
|
|||||||
end
|
end
|
||||||
|
|
||||||
Given /I load the root node/ do
|
Given /I load the root node/ do
|
||||||
Given 'I click the "admin/0" link'
|
Given 'I click the "admin/show/root" link'
|
||||||
end
|
end
|
||||||
|
|
||||||
Given /create a new page$/i do
|
Given /create a new page$/i do
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Log in
|
# Log in
|
||||||
Given /log in as (.*)$/ do |user|
|
Given /log in as (.*)$/ do |user|
|
||||||
Given "I fill out the log in form with user \"#{user}\" and password \"password\""
|
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
|
end
|
||||||
|
|
||||||
Given /log into the CMS as (.*)/ do |user|
|
Given /log into the CMS as (.*)/ do |user|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user