mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 12:30:15 +01:00
add test for collapsing project containers
This commit is contained in:
parent
3fd2b175f5
commit
42566b6fee
6 changed files with 89 additions and 23 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue