Browse Source

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
tags/4.2.0
Go MAEDA 3 years ago
parent
commit
2d8d0b7dee
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      test/system/quick_jump_test.rb

+ 2
- 2
test/system/quick_jump_test.rb 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

Loading…
Cancel
Save