fix failing scenario

This commit is contained in:
Reinier Balt 2013-02-27 21:50:03 +01:00
parent 48e47fc009
commit 1d932ccfe5

View file

@ -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