./www/ruby-capybara, Integration testing tool for rack based web applications

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 2.15.1, Package name: ruby23-capybara-2.15.1, Maintainer: pkgsrc-users

Capybara is an integration testing tool for rack based web applications. It
simulates how a user would interact with a website.

Required to run:
[textproc/ruby-nokogiri] [textproc/ruby-xpath] [mail/ruby-mini_mime]

Required to build:

Master sites:

SHA1: 8f572f038744201d6c4769742c2a1f7e71eb61f3
RMD160: efd18c060907fbde14ce2e54ed9a52c8c856e8b9
Filesize: 264 KB

Version history: (Expand)

CVS history: (Expand)

   2017-09-16 21:27:31 by Thomas Klausner | Files touched by this commit (372)
Log message:
Reset maintainer
   2017-09-10 18:14:59 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-capybara to 2.15.1.

# Version 2.15.1

Release date: 2017-08-04

### Fixed

*  `attach_file` with no extension/MIME type when using the `:rack_test` driver
   [Thomas Walpole]

# Version 2.15.0

Release date: 2017-08-04

### Added

*  `sibling` and `ancestor` finders added [Thomas Walpole]
*  Added ability to pass options to registered servers when setting
*  Added basic built-in driver registrations `:selenium_chrome` and
   `:selenium_chrome_headless` [Thomas Walpole]
*  Add `and_then` to Capybara RSpec matchers which behaves like the previous
   `and` compounder. [Thomas Walpole]
*  Compound RSpec expectations with Capybara matchers now run both matchers
   inside a retry loop rather than waiting for one to pass/fail before
   checking the second.  Will make `#or` more performant and confirm both
   conditions are true "simultaneously" for `and`.  [Thomas Walpole] If you
   still want the
*  Default filter values are now included in error descriptions [Thomas Walpole]
*  Add `Session#refresh` [Thomas Walpole]
*  Loosened restrictions on where `Session#within_window` can be called from
   [Thomas Walpole]
*  Switched from `mime-types` dependency to `mini_mime` [Jason Frey]
   2017-07-31 00:32:28 by Thomas Klausner | Files touched by this commit (229)
Log message:
Switch github HOMEPAGEs to https.
   2017-06-21 16:31:02 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-capybara to 2.14.3.

# Version 2.14.3

Release date: 2017-06-15

### Fixed

* Minitest assertions now raise the correct error type - Issue #1879
  [Thomas Walpole]
* Improve flexibility of detecting Chrome headless mode [Thomas Walpole]
   2017-06-10 17:59:37 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-capybara to 2.14.2.

* pkgsrc chagnge: depends on ruby-rack14 instead of ruby-rack16.

# Version 2.14.2

Release date: 2017-06-09

### Fixed

* Workaround for system modals when using headless Chrome now works if the
  page changes

# Version 2.14.1

Release date: 2017-06-07

### Fixed

* Catch correct error when unexpected system modals are discovered in latest
  selenium [Thomas Walpole]
* Update default `puma` server registration to encourage it to run in single
  mode [Thomas Walpole]
* Suppress invalid element errors raised while lazily evaluating the results
  of `all` [Thomas Walpole]
* Added missing `with_selected` option to the :select selector to match
  `options`/`with_options` options - Issue #1865 [Bartosz Nowak]
* Workaround broken system modals when using selenium with headless Chrome
   2017-06-04 17:08:16 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-capybara to 2.14.0.

pkgsrc change: depends on ruby-rack16 instead of ruby-rack.

# Version 2.14.0

Release date: 2017-05-01

### Added

* "threadsafe" mode that allows per-session configuration
* `:type` filter added to the `:fillable_field` selector
* Proxy methods when using RSpec for `all`/`within` that call either the
  Capybara::DSL or RSpec matchers depending on arguments passed
* Support for the new errors in selenium-webdriver 3.4

### Fixed

* Element#inspect doesn't raise an error on obsolete elements
* Setting a contenteditable element with Selenium and Chrome 59
* Workaround a hang while setting the window size when using geckodriver 0.16
  and Firefox 53
* Clicking on url with a blank href goes to the current url when using the
  RackTest driver
   2017-04-22 18:57:01 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-capybara to 2.3.0.

#Version 2.13.0
Release date: 2017-03-16

### Added

* Selenium driver supports returning element(s) from evaluate_script [Thomas Walpole]
* rack_test driver supports click on checkboxes and radio buttons to change \ 
their states [Thomas Walpole]
* Support RSpec equivalent assertions and expectations for MiniTest [Thomas Walpole]

### Foxed
* Editing of content editable children with selenium

#Version 2.12.1
Release date: 2017-02-16

### Fixed
*  Disable lazy Capybara::Results evaluation for JRuby due to ongoing issues

#Version 2.12.0
Release date: 2017-01-22

### Added

* Session#switch_to_frame for manually handling frame switching - Issue #1365 \ 
[Thomas Walpole]
* Session#within_frame now accepts a selector type (defaults to :frame) and \ 
locator [Thomas Walpole]
* Session#execute_script and Session#evaluate_script now accept optional \ 
arguments that will be passed to the JS function.  This may not be supported
  by all drivers, and the types of arguments that may be passed is limited.  If \ 
drivers opt to support this feature they should support passing page elements. \ 
[Thomas Walpole]
* :exact option for text and title matchers - Issue #1256 [Thomas Walpole]
* :exact_text option for selector finders/minders - Issue #1256 [Thomas Walpole]
* Capybara.exact_text setting that affects the text matchers and :text options \ 
passed to selector finders/matchers. Issue #1256 [Thomas Walpole]
* :make_visible option for #attach_file that allows for convenient changing of \ 
the CSS style of a file input element before attaching the file to it.  Requires \ 
  support for passing page elements to Session#execute_script [Thomas Walpole]
* assert_all_selectors/assert_none_of_selectors assertions added
* :link selector (used by find_link/click_link) now supports finding hyperlink \ 
placeholders (no href attribute) when href: nil option is specified [Thomas \ 
* `within_element` as an alias of `within` due to RSpec collision

### Fixed
*  Fields inside a disabled fieldset are now correctly considered disabled - \ 
Issue #1816 [Thomas Walpole]
*  Lazy Capybara::Results evaluation enabled for JRuby
*  A driver returning nil for #current_url won't raise an exception when calling \ 
#current_path [Dylan Reichstadt]
*  Support Ruby 2.4.0 unified Integer [Koichi ITO]
*  RackTest driver no longer modifies the text content of textarea elements in \ 
order to behave more like a real browser [Thomas Walpole]
*  TextQuery (assert_text/have_text/etc) now ignores errors when trying to \ 
generate more helpful errors messages so the original error isn't hidden [Thomas \ 

Release date: 2016-12-05

### Added
* Options for clearing session/local storage on reset added to the Selenium driver
* Window size changes wait for the size to stabilize
* Defined return value for most actions
* Ignore specific error when qutting selenium driver instance - Issue #1773 \ 
[Dylan Reichstadt, Thomas Walpole]
* Warn on selenium unknown errors rather than raising when quitting driver [Adam \ 
Pohorecki, Thomas Walpole]
* Capybara::Result#each now returns an `Enumerator` when called without a block \ 
- Issue #1777 [Thomas Walpole]

### Fixed
* Selenium driver with Chrome should support multiple file upload [Thomas Walpole]
* Fix visible: :hidden with :text option behavior [Thomas Walpole]

Release date: 2016-11-30

### Fixed
* App exceptions with multiple parameter initializers now re-raised correctly - \ 
Issue #1785 [Michael Lutsiuk]
* Use Addressable::URI when parsing current_path since it's more lenient of \ 
technically invalid URLs - Issue #1801 [Marcos Duque, Thomas Walpole]
   2016-10-18 17:42:12 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-capybara to 2.10.1.

Release date: 2016-10-08

### Fixed
* App errors are now correctly raised with the explanatory cause in JRuby \ 
[Thomas Walpole]
* Capybara::Result optimization disabled in JRuby due to issue with lazy \ 
enumerator evaluation [Thomas Walpole]
  See: https://github.com/jruby/jruby/issues/4212

Release date: 2016-10-05

### Added
* Select `<button>` elements with descendant images with `alt` attributes \ 
matching the locator [Ian Lesperance]
* Locator string is optional in selector based matchers [Thomas Walpole]
* Selectors can specify their default visible setting [Thomas Walpole]
* Selector based finders and matchers can be passed a block to filter the \ 
results within the retry behavior [Thomas Walpole]

#Version 2.9.2
Release date: 2016-09-29

### Fixed
* :label built-in selector finds nested label/control by control id if the label \ 
has no 'for' attribute [Thomas Walpole]
* Warning issued if an unknown selector type is specified

#Version 2.9.1
Release date: 2016-09-23

### Fixed
* allow_label_click option did not work in some cases with Poltergeist - Issue \ 
#1762 [Thomas Walpole]
* matches_selector? should have access to all of a selectors options except the \ 
count options [Thomas Walpole]

#Version 2.9.0
Release date: 2016-09-19

### Fixed
* Issue with rack-test driver and obselete mime-types when using `#attach_file` \ 
- Issue #1756 [Thomas Walpole]

### Added
* `:class` option to many of the built-in selectors [Thomas Walpole]
* Removed need to specify value when creating `:boolean` filter type in custom \ 
selectors [Thomas Walpole]
* Filters can now be implemented through the XPath/CSS expressions in custom \ 
selectors [Thomas Walpole]
* `Element#matches_xpath?` and `Element#matches_css?` [Thomas Walpole]

#Version 2.8.1
Release data: 2016-08-25

* Fixed error message from have_text when text is not found but contains regex \ 
special characters [Ryunosuke Sato]
* Warn when :exact option is passed that has no effect [Thomas Walpole]

# Version 2.8.0
Release date: 2016-08-16

### Fixed
* Issue with modals present when closing the page using selenium - Issue #1696 \ 
[Jonas Nicklas, Thomas Walpole]
* Server errors raised in test code have the cause set to an explanatory exception
  in rubies that support Exception#cause rather than a confusing \ 
ExpectationNotMet - Issue #1719 [Thomas Walpole]
* background/given/given! RSoec aliases will work if RSpec \ 
config.shared_context_metadata_behavior == :apply_to_host_groups [Thomas \ 
* Fixed setting of unexpectedAlertError now that Selenium will be freezing the \ 
Capabilities::DEFAULTS [Thomas Walpole]

### Added
* 'check', 'uncheck', and 'choose' can now optionally click the associated label \ 
if the checkbox/radio button is not visible [Thomas Walpole]
* Raise error if Capybara.app_host/default_host are specified incorrectly \ 
[Thomas Walpole]
* Capybara::Selector::FilterSet allows for sharing filter definitions between \ 
selectors [Thomas Walpole]
* Remove need to pass nil locator in most node actions when locator is not \ 
needed [Thomas Walpole]
* New frames API for drivers - Issue #1365 [Thomas Walpole]
* Deprecated Element#parent in favor of Element#query_scope to better indicate \ 
what it is [Thomas Walpole]
* Improved error messages for have_text matcher [Alex Chaffee, Thomas Walpole]
* The `:with` option for the field selector now accepts a regular expression for \ 
matching the field value [Uwe Kubosch]
* Support matching on aria-label attribute when finding fields/links/buttons - \ 
Issue #1528 [Thomas Walpole]
* Optimize Capybara::Result to only apply fields as necessary in common use-case \ 
of `.all[idx]` [Thomas Walpole]

#Version 2.7.1
Release date: 2016-05-01

### Fixed
* Issue where within_Frame would fail with Selenium if the frame is removed from \ 
within itself [Thomas Walpole]
* Reset sessions in reverse order so sessions with active servers are reset last \ 
- Issue #1692 [Jonas Nicklas, Thomas Walpole]

# Version 2.7.0
Release date: 2016-04-07

### Fixed
* Element#visible?/checked?/disabled?/selected? Now return boolean
  as expected when using the rack_test driver [Thomas Walpole]
* The rack_test driver now considers \<input type="hidden"> \ 
elements as non-visible [Thomas Walpole]
* A nil locator passed to the built-in html type selectors now behaves \ 
consistently, and finds elements of the expected types [Thomas Walpole]
* Capybara::Server now searches for available ports on the same interface it \ 
binds to [Aaron Stone]
* Selenium Driver handles system modals that appear when page is unloading \ 
[Thomas Walpole]
* Warning output if unused parameters are passed to a selector query [Thomas Walpole]

### Added
* Capybara now waits for requests to Capybaras server to complete while restting \ 
the session [John Hawthorn, Thomas Walpole]
* Capybara.reuse_server option to allow disabling of sharing server instance \ 
between sessions [Thomas Walpole]
* :multiple filter added to relevant selectors [Thomas Walpole]
* Provided server registrations for :webrick and :puma. Capybara.server = :puma \ 
for testing with Rails 5 [Thomas Walpole]
* Deprecate passing a block to Capybara::server user Capybara::register_server \ 
instead [Thomas Walpole]
* :option selector supports :selected and :disabled filters [Thomas Walpole]
* Element#matches_selector? and associated matchers (match_selector, match_css, \ 
etc) for comparing an element to a selector [Thomas Walpole]
* Deprecated Driver#browser_initialized? - Driver#reset! is required to be \ 
synchronous [Jonas Nicklas, Thomas Walpole]
* Deprecated Capybara.save_and_open_page_path in favor of Capybara.save_path \ 
with slightly different behavior when using relative paths with
  save_page/save_screenshot [Thomas Walpole]
* :label selector [Thomas Walpole]