capybara_select2

Capybara helpers for https://select2.org select box (supports Select2 version 2/3/4)

MIT License

Downloads
1.9M
Stars
49
Committers
11

Bot releases are hidden (Show)

capybara_select2 - Capybara Select2 version 0.5.0 Latest Release

Published by Hirurg103 over 4 years ago

CHANGELOG:

  • Added specific select2 helpers that allow more refined access to a select2 control ( @Hirurg103 )
  • Allow to pass a string value the search parameter to search by the different term than an option text (@Hirurg103 )
capybara_select2 - Capybara Select2 version 0.4.4

Published by Hirurg103 over 4 years ago

CHANGELOG:

  • Fixed the issue that select2 helper doesn't allow to re-select an already selected value ( @Hirurg103 )
capybara_select2 - Capybara Select2 version 0.4.3

Published by Hirurg103 over 4 years ago

CHANGELOG:

  • Added exact_text parameter that allows to select select2 options by exact text in case of ambiguous match ( @garymh )
  • Fixed Unable to find css ".select2-results .select2-results__option[role='treeitem']" in select2 version 4.0.9+ ( @Hirurg103 )
capybara_select2 - Capybara Select2 version 0.4.0

Published by Hirurg103 over 5 years ago

CHANGELOG:

  • Added match strategy when selecting an option ( @r4do )
  • Use :css explicitly in the find methods. This will allow to avoid issues in projects which use XPatch selector by default ( @etipton )
  • Add have_select2_option test helper ( @Hirurg103 )
capybara_select2 - Capybara Select2 version 0.3.2

Published by Hirurg103 about 6 years ago

CHANGELOG:

  • Fixed the bug with using select2 within within capybara helper ( @kreintjes )
  • Fixed the bug with selecting a value from a select with groups ( @kreintjes )
capybara_select2 - Capybara Select2 version 0.3.0

Published by Hirurg103 about 6 years ago

CHANGELOG:

  • Detects select2 version automatically
  • Several values can be passed to select2 helper at once
  • Raises clear error if options don't specify select2 container XPath, CSS or label
capybara_select2 - Capybara Select2 version 0.1.1

Published by Hirurg103 about 6 years ago

Added support for dynamic option creation (tagging)

capybara_select2 - Capybara Select2 version 0.1.0

Published by Hirurg103 about 6 years ago

Supports select2 version 2/3/4. Allows to search for an options via search: true parameter

Package Rankings
Top 4.49% on Rubygems.org
Badges
Extracted from project README
Build Status Maintainability Test Coverage