Commit Graph

62 Commits

Author SHA1 Message Date
Damian Janowski a3abe5782c Add spec that shows nested file inputs. 2010-05-14 13:20:07 -03: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 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 561525dd81 Rename RackSession to RackAdapter 2009-08-12 20:39:35 -04:00
Mike Gaffney 0c9944c4d8 Merge commit 'eddd97936'
Conflicts:
	spec/integration/rails/test/integration/webrat_test.rb
2009-06-15 22:40:02 -05:00
Bryan Helmkamp d9de87c41f Remove redgreen from rails integration tests too 2009-06-15 00:16:23 -04:00
Mike Gaffney f4141f787d [#261 state:awaiting-patch]
added a test that shows that selenium can't click a link with text that has parens in it
2009-06-08 12:08:53 -05:00
Mike Gaffney a6a4a7cfd9 moving app server lookup out into a factory 2009-06-04 14:44:06 -05:00
Mike Gaffney f3a12adaa9 whitespace changes 2009-06-04 12:18:31 -05:00
Thomas Jack 2ae14f78b1 expose regexp escape problem in fill_in_test 2009-06-02 17:56:12 -05:00
mike.gaffney bd1655c8e2 [#257 state:awaiting-patch] here is a test proving the issue 2009-06-02 17:23:12 -05:00
mike.gaffney 2219ab62d3 refactoring buttons to their own controller 2009-06-01 12:25:36 -05:00
mike.gaffney 5430930bac added test for clicking link by title 2009-06-01 12:17:29 -05:00
Matthias Marschall 9b85b6d7e0 added integration tests for all cases of click_button (by id, by html, by value, by alt for buttons and inputs of types image, button and submit) 2009-05-29 17:05:35 -05:00
Matthias Marschall 6cd734aec9 made selenium integration tests run applying larrytheliquid's patch: 627913708c 2009-05-29 17:05:35 -05:00
Luke Amdor 7f13a70b4b Added current_url to SeleniumSession to have the same api for both sessions 2009-05-13 22:33:20 -05:00
Bryan Helmkamp b439d7f807 Revert "Canonicalize all URLs (Shalon Wood)"
This reverts commit 755cf6e508.
2009-05-11 16:48:28 -04:00
Bryan Helmkamp 755cf6e508 Canonicalize all URLs (Shalon Wood) 2009-05-11 00:12:27 -04:00
Mutwin Kraus eddd979361 Fixed following of internal redirects when using a custom Host header
Webrat didn't properly follow internal redirects when using the Host
  header, this lets Webrat check the Host header before falling back
  to www.example.com as the current_host.
2009-04-24 23:49:11 -07:00
Bryan Helmkamp 03914fd293 Whitespace 2009-04-07 20:30:12 -04:00
Bryan Helmkamp 4769a5f90b Detect infinite redirects and raise a Webrat::InfiniteRedirectError (Daniel Lucraft) 2009-02-08 20:54:00 -05:00
Bryan Helmkamp 238bfb469e Use redgreen when running rails integraton tests if available 2009-01-25 19:48:02 -05:00
Mike Gaffney 3d5dd1343c turning off have_tag test for now until we figure out whether we want it or not. Making integration not run the selenium tests for now. Need a eventually framework for test::unit 2009-01-25 18:30:03 -06:00
Amos King 0a021059d6 Added to rails test for have_tag 2009-01-23 21:13:52 -06:00
Amos King 0b8e378fb2 change to use rails label tag for test. 2009-01-23 20:56:16 -06:00
Amos King 813adcc238 Remove the rails selenium test directory and change rake tasks for selenium and rails modes to run the same tests. The end goal should be that the same tests run in both Seleium and Webrat. 2009-01-23 15:37:26 -06:00
Amos King da59584cdf add the ability for selenium mode to create pids dirs 2009-01-23 15:34:51 -06:00
Amos King 2c9b546a83 Merge branch 'lh_120_tests_with_selenium' of git@github.com:gaffo/webrat into lh_82
Conflicts:
	spec/integration/rails/test/integration/webrat_test.rb
2009-01-23 15:11:16 -06:00
Zach Dennis 0272e81847 Fixed issue where webrat was only using relative paths when making requests for Rails apps. This borked Rails apps that use subdomains [John Hwang/Zach Dennis] 2009-01-20 21:48:48 -05:00
Bryan Helmkamp 14d114ce1d Ensure the previous pages params aren't passed through redirect 2009-01-19 13:56:22 -05:00
Bryan Helmkamp 6676ae2da9 Adding integration test for field_labeled 2009-01-17 17:13:20 -05:00
Bryan Helmkamp 7a7cb3f002 Support passing an ActiveRecord model to #within when in Rails mode [#68 state:resolved] (Luke Melia) 2009-01-17 13:18:42 -05:00
Amos King 652610381a added selenium test for assert_selector 2009-01-13 22:48:57 -06:00
Amos King fd860a2e6d added rails test for assert_selector 2009-01-13 22:48:06 -06:00
Amos King a32ec70d7f added xpath test to selenium 2009-01-13 22:45:26 -06:00
Amos King 647eb4cb6f add test for assert_xpath 2009-01-13 22:43:31 -06:00
Amos King 2d065e8a2d add test for click_link with id to selenium 2009-01-13 22:43:14 -06:00
Amos King 0aa5fda61d added click link test to selenium 2009-01-13 22:35:58 -06:00
Amos King 2510e7d43d added clicking link by id 2009-01-13 22:34:47 -06:00
Amos King 3902573d3e add a link to the rendered text and add a test for clicking it 2009-01-13 22:33:47 -06:00
Amos King a396758da4 fixed rakefile so the tasks will run the correct mode, and so there is a task to run both modes. 2009-01-13 07:57:20 -06:00
Mike Gaffney 758e323f89 breaking up selenium from rails_webrat tests for the moment 2009-01-13 00:26:49 -06:00