Commit Graph

32 Commits

Author SHA1 Message Date
Thomas Walpole 60558466c0 Fix some rspec raise_error deprecation warnings 2015-08-21 17:46:05 -07:00
Thomas Walpole ed2071b480 fill_options: {clear: :backspace} should only be tested for selenium 2015-04-12 20:32:12 -07:00
Joe Lencioni cfc507ff12 Add fill_option to Selenium for clearing with backspaces
Sending the correct number of backspace keys to clear an input before
filling it in with the desired text more accurately mimics real-world
behavior, which can be useful when used with libraries that want to
maintain a tight control over the DOM, such as React.js.

This option can be used by passing `:fill_options` to the `fill_in`
method in your feature specs:

  fill_in 'my_input', :with => 'my text',
    :fill_options => { :clear => :backspace }

Or, with the Ruby 1.9 style syntax:

  fill_in 'my input', with: 'my text'
    fill_options: { clear: :backspace }
2015-04-11 17:01:22 -07: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
Thomas Walpole addecfadd0 use no-sandbox option for chrome and adjust permissions for /dev/shm for travis build 2013-11-18 12:47:05 -08:00
Jonas Nicklas c9ba16cd08 Trigger change events when clearing fields, closes #1072 2013-11-10 14:10:56 +01:00
Jonas Nicklas 151034f01d Merge pull request #1054 from TimMoore/improve-change-event-test
Improve the test for change events when calling fill_in.
2013-10-20 11:17:32 -07:00
Jon Rowe 3f5180ffcd Support filling in `contenteditable` elements, closes #911 2013-10-20 19:42:37 +02:00
Jonas Nicklas 50993f2193 Merge pull request #1069 from twalpole/textare_newline
Textarea with linefeeds - Fixes #1068
2013-07-03 05:28:14 -07:00
Ryan Schlesinger 5e6e9439c6 Remove :focus tag from fill_in_spec test 2013-05-09 15:57:27 -07:00
Thomas Walpole e41f5e6dca textareas with linefeeds - Fixes #1068 2013-04-25 18:09:34 -07:00
Tim Moore dac3235172 Specify :match => :one explicitly. 2013-04-14 10:32:08 +10:00
Tim Moore 3efdb38827 Improve the test for change events when calling fill_in.
- Assert that the event is triggered.
  - Assert that the value of the input is correct at the time the event
    is triggered.
  - Do not allow multiple events to be fired for a single change.
2013-04-13 17:47:02 +10:00
Jonas Nicklas 6ce45f2efb Cast to string if field has maxlength value, closes #989 2013-03-26 21:29:44 +01:00
Jonas Nicklas 983acc93da Prove that HTML in textareas is handled correctly 2013-03-26 16:24:26 +01:00
CJ Kihlbom and Jonas Nicklas 1484902a0a Add options for fill_in 2013-02-24 16:41:20 +01:00
Jonas Nicklas 7e4d3b85f5 Use expect..to instead of the `running` alias 2012-10-30 14:26:19 +01:00
Jonas Nicklas dd805d639b Ignore disabled fields and buttons, closes #771 2012-09-09 17:18:03 +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
Jonas Nicklas and Nicklas Ramhöj 5935b6c052 Use HaveSelector matchers for more RSpec matchers 2012-06-08 17:07:12 +02:00
Jonas Nicklas and Nicklas Ramhöj ad833a1e13 Selectors can no longer have custom failure messages 2012-06-08 15:53:25 +02:00
Jonas Nicklas cc05b1d63b Raise an error when there are multiple elements found 2012-02-01 13:24:13 +01:00
Adam McCrea 7a383b4251 Add custom selectors to avoid duplication and to
centralize finder strategies and failure messages
2012-01-02 11:12:28 +01:00
Adam McCrea dfc217f005 Add specs for finder error messages 2012-01-02 11:12:28 +01:00
Guilherme Carvalho e61373fdc6 Made rack test driver honour maxlength constraints on text and password fields. Closes #210. 2011-03-06 01:06:10 +01:00
Jonas Nicklas d72d9998ff Added spec which proves that URL fields work, closes #80 2010-06-29 21:58:57 +02:00
Jonas Nicklas a94f9949d5 Merge remote branch 'ursm/input-without-type'
Conflicts:
	lib/capybara/driver/rack_test_driver.rb
	lib/capybara/driver/selenium_driver.rb
2010-06-19 17:46:54 +02:00
Bernerd Schaefer and Tim Pope 88d58ce991 In Selenium, support "<input type='search'/>" etc. 2010-06-16 15:06:20 -05:00
Keita Urashima 37e3012009 Add spec, all specs were made to pass. 2010-05-20 20:43:16 +09:00
Len Smith a550cc458a raising an error if someone forgets to provide a hash to fill_in 2010-04-21 17:55:33 -04: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/fill_in_spec.rb (Browse further)