mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
DRY things up a bit
This commit is contained in:
parent
abf4524679
commit
9c82e9c974
2 changed files with 16 additions and 6 deletions
12
features/support/world.rb
Normal file
12
features/support/world.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module TracksStepHelper
|
||||
def submit_multiple_next_action_form
|
||||
selenium.click("xpath=//form[@id='todo-form-multi-new-action']//button[@id='todo_multi_new_action_submit']", :wait_for => :ajax, :javascript_framework => :jquery)
|
||||
end
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
World(TracksStepHelper)
|
||||
Loading…
Add table
Add a link
Reference in a new issue