mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 06:21:49 +01:00
fix failing cucumber scenario
This commit is contained in:
parent
1e7e925c39
commit
44c602e2ca
3 changed files with 18 additions and 10 deletions
|
|
@ -107,9 +107,14 @@ module TracksStepHelper
|
|||
submenu_arrow = "div#line_todo_#{todo.id} img.todo-submenu"
|
||||
page.should have_css(submenu_arrow, :visible=>true)
|
||||
|
||||
page.find(submenu_arrow).click
|
||||
# pick the first because calendar page could have the same todo more than once
|
||||
page.all(submenu_arrow)[0].click
|
||||
|
||||
page.should have_css("div#line_todo_#{todo.id} ul#ultodo_#{todo.id}", :visible => true)
|
||||
|
||||
within all("div#line_todo_#{todo.id} ul#ultodo_#{todo.id}")[0] do
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
||||
def context_list_find_index(context_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue