mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-11 23:22:36 +01:00
fix some regressions caused by the newer acts_as_list gem
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
92c8cfe61a
commit
4927f39594
9 changed files with 85 additions and 72 deletions
|
|
@ -22,7 +22,7 @@ module TracksStepHelper
|
|||
!selenium.is_element_present("//form[@id='form_todo_#{todo.id}']")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def format_date(date)
|
||||
# copy-and-past from ApplicationController::format_date
|
||||
return date ? date.in_time_zone(@current_user.prefs.time_zone).strftime("#{@current_user.prefs.date_format}") : ''
|
||||
|
|
@ -46,14 +46,14 @@ module TracksStepHelper
|
|||
wait_for :timeout => 5 do
|
||||
selenium.is_element_present(edit_button)
|
||||
end
|
||||
|
||||
|
||||
selenium.click(edit_button, :wait_for => :ajax, :javascript_framework => :jquery)
|
||||
end
|
||||
|
||||
def wait_for_ajax
|
||||
selenium.wait_for :wait_for => :ajax, :javascript_framework => :jquery
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
World(TracksStepHelper)
|
||||
Loading…
Add table
Add a link
Reference in a new issue