You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This way users of Capybara 1.1.2 will not be confused. We could start
preferring has_text in the README once 2.0.0 is out.
@hardbap in teamcapybara#580 and @mipearson in teamcapybara#604 ran into this -- thanks to
both for the reports!
In the AJAX section:
a variant of this:
Gives me
Appending puts above it shows that the element is found and that it has text.
Investigation of the API docs shows that
Capybara::Node::Element
does not mix inMatchers
, hence nohas_text?
method.Workaround is
find(#title).text.should include?(@advert.title)
Using REE 1.8.7, Rails 3.0.11, Capybara 1.1.1, rack-test 0.5.7, Cucumber 1.1.4
The text was updated successfully, but these errors were encountered: