mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
419da4d67c
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@94529 467b73ca-7a2a-4603-9d3b-597d59a354a9
24 lines
703 B
Ruby
24 lines
703 B
Ruby
# Steps definitions for security
|
|
|
|
# Fixture instantiation
|
|
Given /a "(.*)" group/ do |group|
|
|
Given 'I visit admin/security'
|
|
And 'I click the "Security Groups" link'
|
|
And 'I click the "Create" button'
|
|
And "I put \"#{group}\" in the \"Title\" field"
|
|
And 'I click the "Save" button'
|
|
end
|
|
|
|
Given /a user called "(.*)" in the "(.*)" group/ do |user, group|
|
|
Given 'I visit admin/security'
|
|
And "I click the \"#{group} (global group)\" link"
|
|
And "I put \"#{user}\" in the \"FirstName\" field"
|
|
And "I put \"#{user}\" in the \"Email\" field"
|
|
And "I put \"password\" in the \"SetPassword\" field"
|
|
And "I click the \"Add\" button"
|
|
end
|
|
|
|
Given /^I get a permission denied error$/ do
|
|
pending
|
|
end
|