add test for collapsing project containers

This commit is contained in:
Reinier Balt 2013-03-18 13:33:30 +01:00
parent 3fd2b175f5
commit 42566b6fee
6 changed files with 89 additions and 23 deletions

View file

@ -2,7 +2,7 @@ Given /this is a pending scenario/ do
pending
end
Given /^I set the locale to "([^"]*)"$/ do |locale|
Given(/^I set the locale to "([^"]*)"$/) do |locale|
@locale = locale
end
@ -15,12 +15,16 @@ Given /^the date is "(.*?)"$/ do |date|
Timecop.travel(date)
end
Given(/^I have selected the view for group by project$/) do
@group_view_by='projects'
end
Then /the badge should show (.*)/ do |number|
badge = find("span#badge_count").text.to_i
badge.should == number.to_i
end
Then /^I should see an error flash message saying "([^"]*)"$/ do |message|
Then(/^I should see an error flash message saying "([^"]*)"$/) do |message|
xpath = "//div[@id='message_holder']/h4[@id='flash']"
page.should have_xpath(xpath, :visible => true)