mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 07:21:48 +01:00
finish cucumber scenario for calendar
This commit is contained in:
parent
75cf51927e
commit
668ef4fb23
4 changed files with 14 additions and 6 deletions
|
|
@ -5,6 +5,7 @@ module TracksStepHelper
|
|||
|
||||
def submit_next_action_form
|
||||
selenium.click("xpath=//form[@id='todo-form-new-action']//button[@id='todo_new_action_submit']", :wait_for => :ajax, :javascript_framework => :jquery)
|
||||
sleep(1)
|
||||
end
|
||||
|
||||
def submit_new_context_form
|
||||
|
|
@ -17,6 +18,9 @@ module TracksStepHelper
|
|||
|
||||
def submit_edit_todo_form (todo)
|
||||
selenium.click("//div[@id='edit_todo_#{todo.id}']//button[@id='submit_todo_#{todo.id}']", :wait_for => :ajax, :javascript_framework => :jquery)
|
||||
wait_for do
|
||||
!selenium.is_element_present("//form[@id='form_todo_#{todo.id}']")
|
||||
end
|
||||
end
|
||||
|
||||
def format_date(date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue