Defect #34357

Fix Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link or button "eCookbook"

Added by Marius BALTEANU 5 months ago. Updated 5 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:-
Target version:-
Resolution:Fixed Affected version:

Description

Running the system tests return the following errors:

Error:
QuickJumpTest#test_project_quick_jump:
Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link or button "eCookbook" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[1]/DIV[2]/DIV[1]/DIV[2]">
    test/system/quick_jump_test.rb:34:in `block in test_project_quick_jump'
    test/system/quick_jump_test.rb:32:in `test_project_quick_jump'
Error:
QuickJumpTest#test_project_quick_jump_should_jump_to_the_same_tab:
Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link or button "eCookbook" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[1]/DIV[2]/DIV[1]/DIV[2]">
    test/system/quick_jump_test.rb:45:in `block in test_project_quick_jump_should_jump_to_the_same_tab'
    test/system/quick_jump_test.rb:43:in `test_project_quick_jump_should_jump_to_the_same_tab'

Those errors were been introduced by #32944.

fix_quick_jump_tests.patch Magnifier (837 Bytes) Marius BALTEANU, 2020-12-01 22:43


Related issues

Related to Redmine - Feature #32944: Always preserve the tree structure in the project jump box Closed

Associated revisions

Revision 20533
Added by Go MAEDA 5 months ago

Fix Capybara::Ambiguous: Ambiguous match, found 2 elements matching visible link or button "eCookbook" (#32944, #34357).

Patch by Marius BALTEANU.

History

#1 Updated by Marius BALTEANU 5 months ago

This issue reproduces only on Chrome headless.

#2 Updated by Go MAEDA 5 months ago

  • Related to Feature #32944: Always preserve the tree structure in the project jump box added

#3 Updated by Go MAEDA 5 months ago

  • Status changed from New to Closed
  • Target version deleted (4.2.0)
  • Resolution set to Fixed

Committed the fix as a part of #32944. Thank you.

Also available in: Atom PDF