mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 23:38:50 +01:00
fix #1121 and add tests for this
This commit is contained in:
parent
3711acb6ab
commit
b02bb3fdde
7 changed files with 70 additions and 13 deletions
|
|
@ -37,8 +37,13 @@ module TracksStepHelper
|
|||
end
|
||||
|
||||
def open_edit_form_for(todo)
|
||||
# click edit
|
||||
selenium.click("//div[@id='line_todo_#{todo.id}']//img[@id='edit_icon_todo_#{todo.id}']", :wait_for => :ajax, :javascript_framework => :jquery)
|
||||
edit_button = "xpath=//div[@id='line_todo_#{todo.id}']//img[@id='edit_icon_todo_#{todo.id}']"
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue