mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-06 09:41:12 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@94529 467b73ca-7a2a-4603-9d3b-597d59a354a9
26 lines
798 B
Ruby
26 lines
798 B
Ruby
##
|
|
## General rules for the SilverStripe CMS as a whole. They mostly have to do with the LeftAndMain
|
|
## interface
|
|
|
|
Given /I click on the "([^\"]*)" tab/ do |tab|
|
|
Given "I click the \"tab-Root_Content_set_#{tab}\" link"
|
|
end
|
|
|
|
Given /I wait for a status message/ do
|
|
Watir::Waiter::wait_until {
|
|
@browser.p(:id, 'statusMessage').exists? && @browser.p(:id, 'statusMessage').visible?
|
|
}
|
|
end
|
|
|
|
Given /I wait for a success message/ do
|
|
# We have to wait until after messages of the form 'Saving...', to get either a good message or
|
|
# a bad message
|
|
Watir::Waiter::wait_until {
|
|
@browser.p(:id, 'statusMessage').exists? && @browser.p(:id, 'statusMessage').visible? && @browser.p(:id, 'statusMessage').class_name != ""
|
|
}
|
|
|
|
@browser.p(:id, 'statusMessage').class_name.should == 'good'
|
|
end
|
|
|
|
|