mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
29 lines
702 B
Ruby
29 lines
702 B
Ruby
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']"
|
|
|
|
if response.respond_to? :selenium
|
|
response.should have_xpath(xpath)
|
|
badge = response.selenium.get_text("xpath=#{xpath}").to_i
|
|
else
|
|
response.should have_xpath(xpath) do |node|
|
|
badge = node.first.content.to_i
|
|
end
|
|
end
|
|
|
|
badge.should == number.to_i
|
|
end
|
|
|
|
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
|