select first menu

in 'Scenario: Deleting a todo will remove it from the calendar'
there may be two menus if the test is run on the last day of
the month
This commit is contained in:
Carsten Otto 2015-04-12 22:11:22 +02:00
parent db62ebd074
commit a23011c88b

View file

@ -105,7 +105,7 @@ module TracksStepHelper
execute_javascript "$('#{submenu_css}').parent().showSuperfishUl()"
expect(page).to have_css(submenu_css, visible: true)
submenu = page.find(submenu_css, visible: true)
submenu = page.first(submenu_css, visible: true)
within submenu do
yield