From 2d8d0b7deeb02d1a379d911975c652472c654f98 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 2 Dec 2020 03:27:34 +0000 Subject: [PATCH] Fix Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link or button "eCookbook" (#32944, #34357). 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5