teamcapybara--capybara/lib
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
..
capybara Improve failure message when text is present but invisible. 2016-07-21 11:29:35 -07:00
capybara.rb raise error if app_host/default_host are incorrectly set 2016-05-06 10:15:59 -07:00