Commit Graph

20 Commits

Author SHA1 Message Date
Thomas Walpole 827c22b5fb more travis test timing allowance 2017-05-10 16:40:20 -07:00
Thomas Walpole e85cce5778 Support easier full text matching 2016-12-23 12:28:25 -08:00
Thomas Walpole c5d7089e0e generally prefer ruby 1.9 hash format 2016-10-04 11:10:29 -07:00
Thomas Walpole 2c10033789 fix test descriptions 2016-06-23 09:20:05 -07:00
Thomas Walpole 07e7777425 frozen literal magic comment 2016-03-07 16:52:19 -08:00
Thomas Walpole bc47af003e raise error when invalid options are passed to have_text/have_content - Fixes issue #1549 2015-07-16 10:46:44 -07:00
Andrey Botalov 06c4955e56 Use diffferent queries for searching
* Add assert_text, assert_no_text, assert_title, assert_no_title
* Refactor query resolving
* Improve failure messages for have_text, have_title RSpec matchers (they will be the same as for added assert_* methods)
* Add Simple#inspect
2014-07-01 23:13:45 +03:00
Thomas Walpole ba37f78692 Update all tests to "expect" format and add support for RSpec 3 usage
Swap from :skip to :capybara_skip since :skip is now used by RSpec 3
Add rspec 3 testing to beta gemfile
2014-04-02 14:33:26 -07:00
Vasiliy Ermolovich 04b99e1634 support :wait option in `assert_selector` and `has_text?` matcher
closes #1105
2013-07-03 15:09:02 +03:00
Andrey Botalov 3783237c5f Add count options to has_text 2013-03-04 02:04:23 +03:00
Jonas Nicklas 10499c05b7 Add type to matchers 2013-02-17 15:45:14 +01:00
Jonas Nicklas ba0f3d9534 Add missing text for whitespace in has_text?, closes #824 2012-09-28 16:09:34 +02:00
Jonas Nicklas c7bf8359f2 Support non string arguments
Most of this work was done in the xpath gem, this
commit really only adds tests.
2012-09-06 09:33:43 +02:00
Jonas Nicklas 2462443f89 Use a custom spec helper instead of shared specs 2012-07-21 16:46:56 -04:00
Jo Liss 0aeee9f8f0 Accept non-string parameters to has_text, notably nil and numbers
This is mostly for compatibility with Capybara 1.1.2.
2012-07-19 18:02:54 +02:00
Vasiliy Ermolovich 2e4eb7d17a has_content? and has_text? can handle regexp as well
closes #740
2012-07-13 10:38:00 +02:00
Mark Dodwell 79ce6f1f90 implement Element#text for RackTest to only return visible text, as with Selenium 2011-10-23 22:51:55 -07:00
Mark Dodwell 6337a1cc12 fix typo leading to false positive in RackTest driver (wip) 2011-10-16 21:45:24 -07:00
Mark Dodwell 9fb05c9c64 add has_text matcher based on Element#text 2011-10-16 16:46:19 -07:00
Mark Dodwell 0c3f377fc4 rough implementation of has_text matchers 2011-10-15 02:06:44 -07:00