Skip to content

Commit

Permalink
Fix Capybara::Ambiguous: Ambiguous match, found 2 elements matching v…
Browse files Browse the repository at this point in the history
…isible 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
  • Loading branch information
vividtone committed Dec 2, 2020
1 parent 42e3e64 commit 2d8d0b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/system/quick_jump_test.rb
Expand Up @@ -31,7 +31,7 @@ def test_project_quick_jump

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
Expand All @@ -42,7 +42,7 @@ def test_project_quick_jump_should_jump_to_the_same_tab

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
Expand Down

0 comments on commit 2d8d0b7

Please sign in to comment.