1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Thomas Walpole
618dd9ff70 Rubocop driven spec style cleanup 2018-03-01 11:44:55 -08:00
Yong Bakos
8d0a64b594 Fix spelling: non-existant -> non-existent. 2017-12-26 23:39:26 -07:00
Bartek Nowak
4d1cac75d7 add :with_selected filter to :select selector + tests
add :with_selected filter to :select selector + tests

use shortened block notation

use quicker alternative to [].flatten
2017-06-05 11:23:32 +02:00
Thomas Walpole
c5d7089e0e generally prefer ruby 1.9 hash format 2016-10-04 11:10:29 -07:00
Thomas Walpole
843d7c57ea make locator optional in selector based have_xxx matchers and has_xxx? booleans 2016-09-28 14:56:17 -07:00
Thomas Walpole
07e7777425 frozen literal magic comment 2016-03-07 16:52:19 -08:00
Thomas Walpole
f375089b7f Add multiple filter to relevant selectors 2016-02-03 11:02:19 -08:00
Nathan Wenneker
33e233a029 Adjust has_select filters to allow invisible options in some cases
- selected filter always allows invisible options

- options filter allows invisible options if the select
  itself is invisible

- with_options filter allows invisible options if hte select
  itself is invisible
2015-10-06 16:15:37 -06: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
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
e80c233a9a Refactor has_select? matcher :selected filter
The previous behaviour was matching any subsets of
selected options.
Now matches only the exact set of selected options.
2012-03-25 22:34:47 -03:00
Gonzalo Rodriguez
6089acc349 has_select? supports matching a partial options set 2012-03-23 22:01:36 -03:00
Gonzalo Rodriguez
e41014a835 Test has_select matches exact empty options 2012-03-23 20:54:45 -03:00
Gonzalo Rodriguez
bcdd23d42d has_select? :options filter matches only exact options 2012-03-23 20:54:37 -03:00
Gonzalo Rodriguez
3a3d6e00ea Whitespaces fix 2012-03-22 21:29:57 -03: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
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
Renamed from spec/dsl/has_select_spec.rb (Browse further)