mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
fix failing scenario
This commit is contained in:
parent
48e47fc009
commit
1d932ccfe5
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ module TracksStepHelper
|
|||
|
||||
def submit_form(form_xpath, button_name)
|
||||
handle_js_confirm do
|
||||
within(:xpath, form_xpath) do
|
||||
# on calendar page there can be more than 1 occurance of a todo, so we select the first here
|
||||
within all(:xpath, form_xpath)[0] do
|
||||
click_button(button_name)
|
||||
end
|
||||
wait_for_ajax
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue