mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
add done view to tag pages and add more tests
This commit is contained in:
parent
6e97541ab3
commit
601736de2d
14 changed files with 1106 additions and 869 deletions
|
|
@ -2,6 +2,10 @@ Given /this is a pending scenario/ do
|
|||
pending
|
||||
end
|
||||
|
||||
Given /^I set the locale to "([^"]*)"$/ do |locale|
|
||||
@locale = locale
|
||||
end
|
||||
|
||||
Given /^I am working on the mobile interface$/ do
|
||||
@mobile_interface = true
|
||||
end
|
||||
|
|
@ -11,7 +15,7 @@ Then /the badge should show (.*)/ do |number|
|
|||
xpath= "//span[@id='badge_count']"
|
||||
|
||||
if response.respond_to? :selenium
|
||||
response.should have_xpath(xpath)
|
||||
response.should have_xpath(xpath)
|
||||
badge = response.selenium.get_text("xpath=#{xpath}").to_i
|
||||
else
|
||||
response.should have_xpath(xpath) do |node|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue