1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
Commit graph

21 commits

Author SHA1 Message Date
Matthew Horan
bbcfb7ea4b Don't interact with readonly elements
* This behavior changed in Capybara 2.4.
* Previously we would focus and send keypress events to readonly
  elements. Now readonly elements are ignored, and a warning is emitted
  by Capybara.
2014-07-13 19:19:01 -04:00
Joe Ferris
e0172bfcd9 Update for Capybara 2.3.0
This adds support for the full Capybara 2.3.0 API. There are two known
incompatibilities:

* Selenium supports outerWidth and outerHeight, which we cannot, because we
  dont' have an actual OS window.
* Selenium raises errors after interacting with a closed window. We focus the
  next available window after closing.

This commit adds the following:

* Implement Driver#close_window
* Implement Driver#current_window_handle
* Implement Driver#maximize_window
* Implement Driver#open_new_window
* Implement Driver#no_such_window_error
* Implement Driver#resize_window_to
* Implement Driver#switch_to_window
* Implement Driver#window_size
* Implement Driver#go_back
* Implement Driver#go_forward
* Support change events when clearing a text input
* Support setting contentEditable elements
* Support window.close() in JavaScript
* Don't return text from hidden elements
* Skip Capybara specs which use outerWidth, outerHeight
* Don't use Qt object ownership to manage windows
2014-07-01 20:36:42 -04:00
Matthew Horan
2b417defb8 Skip forking spec on JRuby
* JRuby doesn't support `fork`, so this test is irrelevant.
2014-01-28 19:17:16 -05:00
Matthew Horan
15bb56012e Capybara spec_helper is in capybara/spec 2013-02-17 11:19:38 -05:00
Matthew Horan
59ca3c9789 Bump Capybara dependency to 2.0.2
Required for Capybara::SpecHelper.configure.
2013-01-03 14:03:16 -05:00
Matthew Horan
615698037e Reset Capybara.app_host after each spec
Workaround for Capybara integration specs which fail to do the same.
2012-11-30 22:12:11 -05:00
Matthew Horan
8650fe1ff3 Don't reset the browser unnecessarily
The Capybara spec_helper already resets the browser after each spec, so
we only need to reset after using the driver via AppRunner.
2012-11-30 22:12:03 -05:00
Matthew Horan
2ceab4e525 Forward stderr via Open3#popen3
Forwarding stderr via 2>&1 causes an additional child process to be
spawned.  Killing that process does not kill webkit_server.

JavaScipt console messages and alerts are now written to the logger
instead of directly to stdout.
2012-11-30 21:38:56 -05:00
Joe Ferris
327ae85e86 Use sinatra for test apps 2012-07-08 16:09:40 -07:00
Joe Ferris
265a7da652 Improve pattern of testing driver against a rack app 2012-07-08 13:38:19 -07:00
Joe Ferris
259a38f206 Follow new capybara driver naming/module conventions 2012-07-08 12:31:18 -07:00
Joe Ferris
665e0fc729 Extract a Connection class for booting the server 2012-05-04 16:00:25 -04:00
Moreno Carullo
f09ba15637 Support compiling on windows. 2012-03-16 11:59:50 -04:00
Igor Zubkov
9eb8e55759 Fix capybara_webkit_builder specs 2012-02-17 11:27:00 -05:00
Matthew Mongeau
4a6b766b18 Allow ENV to change make, qmake, and spec options. 2012-02-17 11:27:00 -05:00
Hongli Lai (Phusion)
dc49e5f875 Forward webkit_server's stdout to Ruby's stdout.
This allows console.log() messages to be visible, and prevents
large numbers of console.log() calls from filling up webkit_server's pipe
which would block the process.
2011-08-15 19:04:40 +02:00
Joe Ferris
40804c06ba Wait and timeout when looking for content 2011-04-14 10:16:56 -04:00
Joe Ferris
e28cc06cab Fixed multiple browsers starting because before(:all) runs multiple times; fixed separate app servers starting for each example; added injectable class for debugging wire protocol 2011-03-11 11:19:59 -05:00
Joe Ferris
9e27f7d6f4 Initial gem 2011-02-26 18:29:01 -05:00
Joe Ferris
7451010c18 Added commented out integration specs 2011-02-26 17:02:00 -05:00
Joe Ferris
0745b1ee1c Initial commit 2011-02-24 23:13:11 -05:00