Commit Graph

11 Commits

Author SHA1 Message Date
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
Carol Nichols c6687efbfe Allows passing options through has_checked_field? and has_unchecked_field? to has_selector?
This enables assertions on the presence of disabled checked fields by doing:

    assert has_checked_field?('Disabled Checkbox', :disabled => true)

in a similar way to:

    find_field("Disabled Checkbox", :disabled => true)
2013-08-08 21:36:33 -04:00
Yann Plancqueel 03884431ae Possibility to use 'textarea' and 'select' as a :type in Rspec matcher have_field() 2013-03-08 10:19:00 +01: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
Gonzalo Rodriguez 77c2f30cb9 Support :type option for #has_field? matcher 2012-03-01 01:22:27 -02:00
Jonas Nicklas 2e5852b5a6 Remove focus thingy 2011-03-25 10:46:16 +00:00
Jonas Nicklas 6920eae19d Added have_link, have_checked_field and have_unchecked_field matchers 2011-03-25 10:35:59 +00:00
John Firebaugh 9d6aebdea8 Ensure that matchers work correctly after actions, closes #171
With browser-based drivers, the has_value?, has_select?, and
has_checked_field? matchers (and their negative counterparts)
did not always work correctly. It is not possible to determine
the dynamic state of inputs purely with XPath, because XPath
has access only to the value, selected, and checked _attributes_,
and only the corresponding _properties_ change in response to
user input. This commit replaces the pure XPath implementation
with one that retrieves all matching inputs and then filters the
results using driver-specific means that do reflect user input.
2010-12-31 11:04:36 -08:00
Bernerd Schaefer 2ec8657308 Fix typo in has_field spec 2010-09-17 20:22:38 -05:00
Jonas Nicklas cf1aa4d073 Moved shared specs into lib directory
This way, implementations of other drivers can
use the specs to verify that they are working
correctly.
2010-04-09 16:41:35 +02:00