mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
eab27b46a8
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@95648 467b73ca-7a2a-4603-9d3b-597d59a354a9
25 lines
682 B
Ruby
25 lines
682 B
Ruby
|
|
# 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"'
|
|
end
|
|
|
|
Given /log into the CMS as (.*)/ do |user|
|
|
Given "I log in as #{user}"
|
|
And "I visit admin/"
|
|
And "I load the root node"
|
|
end
|
|
|
|
Given /log out$/ do
|
|
Given "I visit Security/logout"
|
|
end
|
|
|
|
Given /fill out the log in form with user "(.*)" and password "(.*)"/ do |user, password|
|
|
Given 'I visit Security/logout'
|
|
And 'I visit Security/login?BackURL=Security/login'
|
|
And "I put \"#{user}\" in the \"Email\" field"
|
|
And "I put \"#{password}\" in the \"Password\" field"
|
|
And "I click the \"Log in\" button"
|
|
end
|
|
|