mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 07:21:48 +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
11
features/support/hooks.rb
Normal file
11
features/support/hooks.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
AfterStep('@pause') do
|
||||
print "Press Return to continue..."
|
||||
STDIN.getc
|
||||
end
|
||||
|
||||
Before('@clear_cookies') do
|
||||
cookies = selenium.cookies
|
||||
cookies.split(';').each do | cookie |
|
||||
selenium.delete_cookie(cookie)
|
||||
end
|
||||
end
|
||||
|
|
@ -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