1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/node
Alex Chaffee 51c83ed5a9 Improve failure message when text is present but invisible.
When testing a page with JS that hides and shows
certain elements, it's useful to know whether a
test failure means that an element has failed to
render, or has rendered but become invisible (or
failed to become visible).

For instance, some jQuery plugins will take
existing elements and hide them, adding some other
elements onto the page that use the originals as
storage. If your tests are written to use the
now-hidden elements they will mysteriously start
failing.

This commit only changes the behavior for failed
tests (rspec and assert) and only for text
queries. It might be nice to extend this to the
other finders.
2016-07-21 11:29:35 -07:00
..
actions.rb DRY up selectors with filter set 2016-05-02 12:44:25 -07:00
base.rb Deprecate Element#parent in favor of Element#query_scope 2016-07-18 14:16:22 -07:00
document.rb frozen literal magic comment 2016-03-07 16:52:19 -08:00
document_matchers.rb frozen literal magic comment 2016-03-07 16:52:19 -08:00
element.rb Deprecate Element#parent in favor of Element#query_scope 2016-07-18 14:16:22 -07:00
finders.rb DRY up selectors with filter set 2016-05-02 12:44:25 -07:00
matchers.rb Improve failure message when text is present but invisible. 2016-07-21 11:29:35 -07:00
simple.rb frozen literal magic comment 2016-03-07 16:52:19 -08:00