Commit Graph

425 Commits

Author SHA1 Message Date
Luismi Cavalle 43b19eeafa Fix have_xpath not matching negative expectation in the block.
[#182 state:resolved]
2010-04-23 13:17:49 -03:00
Damian Janowski 438e53c295 Fix broken integration test in 1.9.1-p378. 2010-04-22 19:09:45 -03:00
Damian Janowski c49123c772 Fix Mechanize spec. 2010-04-13 13:25:28 -03:00
Damian Janowski 2c9de38129 Add missing spec that shows a regression after e3bcf5. 2010-04-13 12:57:25 -03:00
Damian Janowski 38e699820f Merge remote branch 'wemrysi/master' into mechanize_redirects
Conflicts:
	lib/webrat/adapters/mechanize.rb
2010-04-13 12:01:22 -03:00
Damian Janowski deccefa2c3 Some explicit requires of RubyGems are necessary for integration tests.
Should not affect the way Webrat behaves as a library.
2010-04-12 23:30:56 -03:00
Simon Rozet 10c70a37de Get rid of needless require "rubygems" 2010-04-12 22:28:14 -03:00
Damian Janowski 19fc2ccb89 Remove warnings [#372 state:resolved].
On why this is important:
http://eigenclass.org/hiki/ruby-warnings-SEX-and-stds
2010-04-12 22:25:53 -03:00
Larry Marburger fd944cccb5 Webrat::Core::Session#redirect? should not mistake a 304 for a redirect. 2010-04-12 17:52:09 -03:00
Damian Janowski ef6874c855 Allow submitting forms by CSS selectors too.
Priority is given to selecting by ID for backwards compatibility.

Also add pending `submit_form` specs.
2010-04-12 17:35:12 -03:00
Álvaro Gil e36487458f test added for nested params files upload 2010-04-09 11:38:33 -03:00
Álvaro Gil c49e23d81d fixes #341 attach_file with nested attributes 2010-04-05 11:31:38 -03:00
Álvaro Gil fa881a88c8 build querystring with all form elements and then parse to get query params
* Basically Field#to_param was replaced for Field#to_query_string and
some methods related to build params were moved to Form class.

Before this commit the params hash was made by parsing each element
querystring to param and then merge, now we build the whole querystring
first and then parse it to get params with Rack or Rails depending of
the configure mode.
2010-04-03 12:07:16 -03:00
Emrys Ingersoll 67febe9072 Normalize access to response headers in adapters 2010-02-20 17:06:30 -05:00
Emrys Ingersoll 56b2f342da Adding spec for disabling automatic redirects in Mechanize 2010-02-18 19:04:11 -05:00
Bryan Helmkamp eb3a4ff5d6 Whitespace 2010-01-17 20:35:42 -05:00
Noah Davis ccaf41160c Save and open page storage directory now defaults to "tmp" under current directory if exists, otherwise current directory 2010-01-17 18:29:35 -05:00
Noah Davis 1874f6d395 Removed save_and_open_page's rewriting of static asset paths before saving (was not actually working) 2010-01-16 19:28:29 -05:00
Noah Davis 71dcfb327d Save and open page directory specified via configuration 2010-01-16 19:18:28 -05:00
Noah Davis db168bedec Make "should contain" ignore extra whitespace when doing string comparisons 2010-01-13 16:47:35 -05:00
Michael Klett 61b0fce828 Base64 encoding of HTTP basic auth credentials should omit newlines (do not enforce a 76 character line limit)
According to RFC 2617 (http://www.ietf.org/rfc/rfc2617.txt), the 76 character line limit normally enforced by Base64 encoding should not apply to the encoding of HTTP basic authentication credentials.
2009-11-15 16:50:40 -05:00
Bryan Helmkamp ba95363486 Spec fix: Don't depend on Nokogiri #inspect output 2009-11-15 16:38:09 -05:00
Bryan Helmkamp 672bd583af Whitespace 2009-11-15 16:29:44 -05:00
Jonathan Weiss ea4a52ccf1 add support for Rails 2.3.4 form authenticity tokens 2009-11-15 16:24:56 -05:00
Bryan Helmkamp 05af4dd2a0 Switching to Safari until Snow Leopard + Firefox + Selenium is fixed
http://jira.openqa.org/browse/SRC-743
2009-11-13 21:23:27 -05:00
Bryan Helmkamp 7812f25741 Don't blow up if PID doesn't exist at the end 2009-11-13 21:22:41 -05:00
Bryan Helmkamp fcde80f43f Avoid Selenium test bleed by ending with an assertion about the next page 2009-11-13 21:17:41 -05:00
Bryan Helmkamp 1ce72b6912 Ending selenium tests with assertions avoids "test bleed" 2009-11-13 21:10:25 -05:00
Bryan Helmkamp bb282d992e Remove a couple more bogus tests
<input type="button" /> doesn't submit forms
2009-11-13 21:07:21 -05:00
Bryan Helmkamp f6dd24f7c5 Remove bogus integration tests that were passing (sometimes) by coincidence
An element of <button type="button" /> is not supposed to submit a form
2009-11-13 20:57:55 -05:00
Bryan Helmkamp d0cadf8a76 Update file location for Rails 2.3.4 2009-11-13 20:52:14 -05:00
Bryan Helmkamp 1c28425583 Use Bundler for managing dependencies needed to run the tests 2009-11-13 17:41:33 -05:00
Bryan Helmkamp 042b416092 Whitespace 2009-09-19 17:34:09 -04:00
Bryan Helmkamp b51ba029db Fix support for passing in an ActiveRecord model to within (which uses dom_id) LB/BH 2009-09-18 11:28:07 -04:00
Bryan Helmkamp e7a3ac865c Guard tests for things that aren't supported in Selenium yet 2009-09-17 20:13:04 -04:00
Bryan Helmkamp b0ef59f5ec Properly handle multiline param values (previously, subsequent lines were lost) 2009-09-07 14:07:05 -04:00
Bryan Helmkamp ecaed5ff93 Merge commit 'm3talsmith/master' into gh_18 2009-09-07 13:16:53 -04:00
Bryan Helmkamp 2490c247d2 More clarification of select option locating behavior.
TODO: Ensure the other locators are all matching on text, not HTML
2009-09-07 12:53:06 -04:00
Kieran Pilkington a8d0cebde3 Various improvements, refinements, and bugfixes for select field usage.
Multiple select boxes are now handled a lot better.
* You can now select more than one field (where as previously, the last one select would override previous selections)
* You can now unselect a value. It works like select, takes the same params, but removes the selection value

Issues regarding ampersands in values have been resolved.
* Values are now unescaped when the to_param method is run on elements, to make assertions less complicated
* Locating an option with ampersand values now works as expected (it will check for both escaped and unescaped occurrences)

Bunch of new specs and 3 broken pending ones have now been fixed. [#145 status:resolved]
2009-08-31 18:34:04 +12:00
Bryan Helmkamp 6fd9732b4e Spec giving me trouble -- removing for now 2009-08-29 16:04:04 -04:00
Bryan Helmkamp b9466df773 Merge commit 'djanowski/fix_logger' 2009-08-29 15:57:58 -04:00
Michael Christenson II 3255c9edf0 Forces an integer to fix Issue #18 2009-08-27 11:54:03 -04:00
Bryan Helmkamp 2fc9f3f7f9 Move adapters to webrat/adapters, and Rails and Merb integration code into webrat/integrations 2009-08-19 23:42:54 -04:00
Bryan Helmkamp 11f30d1d2e Dropping support for Hpricot and REXML 2009-08-19 23:14:13 -04:00
Simon Rozet 997ff97405 MerbSession now use RackSession under the hood 2009-08-19 23:14:08 -04:00
Damian Janowski 4a949e0e5a Fix logger issue when running inside Cucumber. 2009-08-14 13:05:20 -03:00
Bryan Helmkamp 2e6bef3b57 Rename TestSession to TestAdapter 2009-08-12 21:42:01 -04:00
Bryan Helmkamp 0412543e5a Add very basic spec for Mechanize 2009-08-12 21:37:15 -04:00
Bryan Helmkamp e4ea9134a7 Rename MechanizeSession to MechanizeAdapter 2009-08-12 20:54:29 -04:00
Bryan Helmkamp 89ec303db5 Rename RailsSession to RailsAdapter 2009-08-12 20:52:57 -04:00