fix tests for dependencies and fix minor issues

This commit is contained in:
Reinier Balt 2011-03-08 23:28:48 +01:00
parent 533e26d953
commit bb6269f81c
15 changed files with 571 additions and 434 deletions

View file

@ -2,6 +2,10 @@ Given /this is a pending scenario/ do
pending
end
Given /^I am working on the mobile interface$/ do
@mobile_interface = true
end
Then /the badge should show (.*)/ do |number|
badge = -1
xpath= "//span[@id='badge_count']"
@ -18,6 +22,8 @@ Then /the badge should show (.*)/ do |number|
badge.should == number.to_i
end
Given /^I am working on the mobile interface$/ do
@mobile_interface = true
Then /^I should see the empty message in the deferred container$/ do
wait_for :timeout => 5 do
selenium.is_visible("xpath=//div[@id='tickler']//div[@id='tickler-empty-nd']")
end
end