Skip to content

Conversation

@Empact
Copy link

@Empact Empact commented Nov 10, 2017

When options are grouped, their group has the class select2-results__option, and the attribute role=group.
Absent this fix, that means selections against grouped fields result in:

Capybara::Ambiguous:
  Ambiguous match, found 2 elements matching visible css ".select2-dropdown li.select2-results__option" with text "TEXT" within #<Capybara::Node::Element tag="body" path="/html/body">

The fix is to exclude the group options on lookup.

When options are grouped, their group has the class select2-results__option, and the attribute role=group.
Absent this fix, that means selections against grouped fields result in:

Capybara::Ambiguous:
  Ambiguous match, found 2 elements matching visible css ".select2-dropdown li.select2-results__option" with text "TEXT" within #<Capybara::Node::Element tag="body" path="/html/body">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant