spec/reports/opera.txt in terminus-0.3.0 vs spec/reports/opera.txt in terminus-0.4.0

- old
+ new

@@ -24,14 +24,10 @@ should extract node tag name should extract node visibility should extract node checked state should extract node selected state should return document text on /html selector - it should behave like driver with header support - should make headers available through response_headers - it should behave like driver with status code support - should make the status code available through status_code it should behave like driver with javascript support #find should find dynamically changed nodes #drag_to should drag and drop an object @@ -43,10 +39,14 @@ should wait for all ajax requests to finish with resynchronization turned off should not wait for ajax requests to finish with short synchronization timeout should raise an error + it should behave like driver with header support + should make headers available through response_headers + it should behave like driver with status code support + should make the status code available through status_code it should behave like driver with frame support #within_frame should find the div in frameOne should find the div in FrameTwo should find the text div in the main window after finding text in frameOne @@ -167,11 +167,11 @@ should be aliased as click_on with a locator that doesn't exist should raise an error it should behave like click_button #click_button - should serialize and send valueless buttons that were clicked (FAILED - 8) + should serialize and send valueless buttons that were clicked should not send image buttons that were not clicked should serialize and send GET forms should follow redirects should post pack to the same URL when no action given should post pack to the same URL when blank action given @@ -221,11 +221,11 @@ should submit the associated form should work with partial matches with text given on a button defined by <button> tag should submit the associated form should work with partial matches - should prefer exact matches over partial matches (FAILED - 9) + should prefer exact matches over partial matches with id given on a button defined by <button> tag should submit the associated form should serialize and send GET forms with value given on a button defined by <button> tag should submit the associated form @@ -236,15 +236,16 @@ should work with partial matches with a locator that doesn't exist should raise an error it should behave like click_link #click_link + should follow relative links should follow redirects should follow redirects should add query string to current URL with naked query string - should do nothing on anchor links (FAILED - 10) - should do nothing on URL+anchor links for the same page (FAILED - 11) + should do nothing on anchor links + should do nothing on URL+anchor links for the same page should follow link on URL+anchor links for a different page raise an error with links with no href with id given should take user to the linked page with text given @@ -263,11 +264,11 @@ should raise an error it should behave like fill_in #fill_in should fill in a text field by id should fill in a text field by name - should fill in a text field by label without for (FAILED - 12) + should fill in a text field by label without for (FAILED - 8) should fill in a url field by label without for should favour exact label matches over partial matches should fill in a textarea by id should fill in a textarea by label should fill in a textarea by name @@ -309,10 +310,11 @@ should raise ElementNotFound with a useful default message if nothing was found should accept an XPath instance and respect the order of paths the returned node should act like a session object should scope CSS selectors + should have a reference to its parent if there is one with css selectors should find the first element using the given locator with id selectors should find the first element using the given locator with xpath selectors @@ -657,15 +659,18 @@ should raise an error it should behave like within #within with CSS selector should click links in the given scope + should assert content in the given scope should accept additional options with XPath selector should click links in the given scope with the default selector should use XPath + with Node rather than selector + should click links in the given scope with the default selector set to CSS should use CSS with click_link should click links in the given scope should raise an error if the scope is not found on the page @@ -693,20 +698,27 @@ is affected by setting Capybara.app_host is unaffected by following a relative link is affected by following an absolute link is unaffected by posting through a relative form is affected by posting through an absolute form + is affected by following a redirect it should behave like session with headers support #response_headers should return response headers - it should behave like session with status code support - #status_code - should return response codes it should behave like session with javascript support all JS specs Node#drag_to should drag and drop an object + Node#reload + without automatic reload + should reload the current context of the node + should reload a parent node + should not automatically reload + with automatic reload + should reload the current context of the node automatically + should reload a parent node automatically + should reload a node automatically when using find #find should allow triggering of custom JS events #body should return the current state of the page #source @@ -715,10 +727,12 @@ should evaluate the given script and return whatever it produces #execute_script should execute the given script and return nothing #find should wait for asynchronous load + with frozen time + raises an error suggesting that Capybara is stuck in time #wait_until should wait for block to return true should raise Capybara::TimeoutError if block doesn't return true within timeout should accept custom timeout in seconds should default to Capybara.default_wait_time before timeout @@ -742,7 +756,122 @@ should wait for content to disappear #has_content? should wait for content to appear #has_no_content? should wait for content to disappear + it should behave like session with status code support + #status_code + should return response codes -498 examples, 12 failures +Failures: + + 1) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id + Failure/Error: @session.attach_file "form_image", __FILE__ + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:12:in `block (4 levels) in <top (required)>' + + 2) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label + Failure/Error: @session.attach_file "Image", __FILE__ + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:18:in `block (4 levels) in <top (required)>' + + 3) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id + Failure/Error: @session.attach_file "form_document", @test_file_path + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:26:in `block (4 levels) in <top (required)>' + + 4) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label + Failure/Error: @session.attach_file "Document", @test_file_path + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:32:in `block (4 levels) in <top (required)>' + + 5) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file + Failure/Error: @session.attach_file "Document", @test_file_path + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:43:in `block (4 levels) in <top (required)>' + + 6) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image + Failure/Error: @session.attach_file "Document", @test_jpg_file_path + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:49:in `block (4 levels) in <top (required)>' + + 7) Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input + Failure/Error: @session.attach_file "Multiple Documents", @test_file_path + Capybara::NotSupportedByDriverError: + Capybara::NotSupportedByDriverError + Shared Example Group: "attach_file" called from ./vendor/capybara/lib/capybara/spec/session.rb:88 + # ./lib/terminus/node.rb:52:in `set' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `block in set' + # ./vendor/capybara/lib/capybara/node/base.rb:46:in `wait_until' + # ./vendor/capybara/lib/capybara/node/element.rb:75:in `set' + # ./vendor/capybara/lib/capybara/node/actions.rb:158:in `attach_file' + # (eval):2:in `attach_file' + # ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:55:in `block (4 levels) in <top (required)>' + + 8) Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for + Failure/Error: extract_results(@session)['street'].should == 'Avenue Q' + expected: "Avenue Q" + got: "Sesame street 66" (using ==) + Shared Example Group: "fill_in" called from ./vendor/capybara/lib/capybara/spec/session.rb:94 + # ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:22:in `block (3 levels) in <top (required)>' + +Finished in 10 minutes 8.65 seconds +510 examples, 8 failures + +Failed examples: + +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:11 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by id +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:17 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with normal form should set a file path by label +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:25 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by id +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:31 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should set a file path by label +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:42 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type text/plain when uploading a text file +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:48 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should send content type image/jpeg when uploading an image +rspec ./vendor/capybara/lib/capybara/spec/session/attach_file_spec.rb:54 # Capybara::Session with terminus driver it should behave like session it should behave like attach_file#attach_file with multipart form should not break when using HTML5 multiple file input +rspec ./vendor/capybara/lib/capybara/spec/session/fill_in_spec.rb:19 # Capybara::Session with terminus driver it should behave like session it should behave like fill_in#fill_in should fill in a text field by label without for