]> source.dussan.org Git - redmine.git/commitdiff
Fix Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link...
authorGo MAEDA <maeda@farend.jp>
Wed, 2 Dec 2020 03:27:34 +0000 (03:27 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 2 Dec 2020 03:27:34 +0000 (03:27 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20533 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/system/quick_jump_test.rb

index bad3020957706ad4426d5a220a6afe40e9a0389b..fae05ebaf0fb2e485db288f4a0412aa9225050b6 100644 (file)
@@ -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