diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb index bad302095..fae05ebaf 100644 --- a/test/system/quick_jump_test.rb +++ b/test/system/quick_jump_test.rb @@ -31,7 +31,7 @@ class QuickJumpTest < ApplicationSystemTestCase within '#header' do page.first('span', :text => 'Jump to a project...').click - click_on 'eCookbook' + click_link('eCookbook', match: :first) end assert_current_path '/projects/ecookbook?jump=welcome' end @@ -42,7 +42,7 @@ class QuickJumpTest < ApplicationSystemTestCase within '#header' do page.first('span', :text => 'Jump to a project...').click - click_on 'eCookbook' + click_link('eCookbook', match: :first) assert_current_path '/projects/ecookbook/issues' page.first('span', :text => 'eCookbook').click