瀏覽代碼

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 年之前
父節點
當前提交
2d8d0b7dee
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      test/system/quick_jump_test.rb

+ 2
- 2
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

Loading…
取消
儲存