mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
Fix the failing mobile test after the updates
The editing an action of the mobile page scenario failed because of the changes to the layout made by Tim Madden.
This commit is contained in:
parent
99707d7a69
commit
27fb483485
2 changed files with 12 additions and 4 deletions
|
|
@ -168,4 +168,12 @@ Then /^the tags of "([^"]*)" should be "([^"]*)"$/ do |todo_description, tag_lis
|
|||
todo.should_not be_nil
|
||||
|
||||
todo.tag_list.should == tag_list
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" in the completed section of the mobile site$/ do |desc|
|
||||
todo = @current_user.todos.find_by_description(desc)
|
||||
todo.should_not be_nil
|
||||
|
||||
xpath = "//div[@id='completed_container']//a[@href='/todos/#{todo.id}.m']"
|
||||
response.should have_xpath xpath
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue