summaryrefslogtreecommitdiffstats
path: root/test/system
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-12-02 03:27:34 +0000
committerGo MAEDA <maeda@farend.jp>2020-12-02 03:27:34 +0000
commit2d8d0b7deeb02d1a379d911975c652472c654f98 (patch)
tree7fc593bc1a7516fd32d0f9c08c89775644755e50 /test/system
parent42e3e642b8cfcefa888abd487b82097748b05e26 (diff)
downloadredmine-2d8d0b7deeb02d1a379d911975c652472c654f98.tar.gz
redmine-2d8d0b7deeb02d1a379d911975c652472c654f98.zip
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
Diffstat (limited to 'test/system')
-rw-r--r--test/system/quick_jump_test.rb4
1 files 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