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

28 commits

Author SHA1 Message Date
Thomas Walpole
4e23b61041 ensure RSpec expectations is loaded before the matchers 2016-04-01 11:40:14 -07:00
Thomas Walpole
07e7777425 frozen literal magic comment 2016-03-07 16:52:19 -08:00
Thomas Walpole
66e2f77243 wait for results to exist before extracting them 2015-07-22 14:43:00 -07:00
Thomas Walpole
5b6d65feae rename default_wait_time to default_max_wait_time - Issue #1442 2015-04-23 10:18:16 -07:00
Thomas Walpole
a8c3812215 add Capybara.wait_on_first_by_default setting to control default behavior of Node#first 2015-04-23 10:12:25 -07:00
Andrey Botalov
adda9b0acd New API for working with windows (switching/finding/closing/opening/etc.) 2014-05-26 22:25:36 +03:00
Thomas Walpole
85e9fcd7f2 fix feature definition in case user has RSpec set not to expose dsl globally - test in rspec 3 beta tests 2014-04-03 10:25:03 -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
Jonas Nicklas
983acc93da Prove that HTML in textareas is handled correctly 2013-03-26 16:24:26 +01:00
Gonzalo
f88f635f0a spec_helper no longer requires itself 2013-03-07 20:51:49 -02:00
Jonas Nicklas
0f9206fd42 Add option to text which makes it possible to return all text, not just invisible text, closes #960 2013-02-17 14:47:32 +01:00
Jonas Nicklas
e22c937884 Add config option which disabled server errors being raise, closes #932 2013-02-16 11:04:40 +01:00
Jonas Nicklas
cceb6b8af7 Add an option which reverts options to Capy 2.0 behaviour 2013-02-16 10:20:50 +01:00
Jonas Nicklas
0303ed84c5 Fix some specs, due to visibility changes 2013-02-15 22:09:40 +01:00
Jonas Nicklas
e898cc2b8e Add match option 2013-02-15 21:32:21 +01:00
Jonas Nicklas
83570f3ece Add exact config option 2013-02-15 20:02:15 +01:00
Kouhei Sutou
180f3dcb16 Suppress warnings: shadowing outer local variable
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - name
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - options
2012-12-02 15:11:29 +09:00
Jonas Nicklas
5280635f7a Clean up spec helper a bit 2012-11-28 21:08:54 +01:00
Jonas Nicklas
8abf65b4e5 Don't automatically configure RSpec in Capybara spec helper
Driver authors then have the choice how they want RSpec configured.
2012-11-28 21:02:21 +01:00
Jonas Nicklas
68d0157e34 Reset both before and after examples 2012-11-28 21:00:32 +01:00
Jonas Nicklas
56abb4ffcc Reset app host before each spec 2012-11-22 15:35:34 +01:00
Jonas Nicklas
4c6481bc36 Apparently this causes random failures
We can't have fast specs, it appears :(
2012-10-30 15:05:36 +01:00
Jonas Nicklas
fed98d2d6d Require stuff in capybara spec helper instead 2012-10-30 14:30:45 +01:00
Jonas Nicklas
875081fe56 Remove capybara/spec/session file
It doesn't do anything useful anymore
2012-10-30 14:18:48 +01:00
Jonas Nicklas
1803a9f991 Decrease wait in specs time unless spec requires js 2012-10-30 14:10:22 +01:00
Jo Liss
0b28aa2e97 For Capybara's own test suite, keep default_wait_time always at 1
Until now, we had it set at 0 for all tests that did't require `:js`.
But that would cause flickering failures when tests that didn't require
`:js` ran against Selenium, e.g. like this:

    visit '/foo' # asynchronous in Selenium
    page.should have_content 'Foo' # can fail if visit didn't finish in time

This change doubles(!) test suite run time, presumably because we are
testing for expected failures in a lot of places, causing us to retry
for the full default_wait_time period. At this point though I'm not sure
if there's a simple way to avoid the performance hit.
2012-09-10 00:53:41 +02:00
Jonas Nicklas
d2c5d1cb55 Turn that frown upside down 2012-07-24 04:40:53 +02:00
Jonas Nicklas
2462443f89 Use a custom spec helper instead of shared specs 2012-07-21 16:46:56 -04:00