1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 09:01:31 +00:00

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
This commit is contained in:
Go MAEDA 2020-12-02 03:27:34 +00:00
parent 42e3e642b8
commit 2d8d0b7dee

View 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