capybara 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +10 -0
  3. data/lib/capybara.rb +1 -1
  4. data/lib/capybara/helpers.rb +1 -1
  5. data/lib/capybara/minitest/spec.rb +2 -0
  6. data/lib/capybara/node/actions.rb +45 -5
  7. data/lib/capybara/queries/match_query.rb +2 -0
  8. data/lib/capybara/queries/selector_query.rb +3 -4
  9. data/lib/capybara/queries/text_query.rb +4 -5
  10. data/lib/capybara/rack_test/node.rb +6 -4
  11. data/lib/capybara/result.rb +1 -1
  12. data/lib/capybara/rspec/compound.rb +2 -0
  13. data/lib/capybara/selector.rb +72 -18
  14. data/lib/capybara/selector/css.rb +2 -0
  15. data/lib/capybara/selenium/driver.rb +14 -15
  16. data/lib/capybara/selenium/node.rb +23 -29
  17. data/lib/capybara/server.rb +29 -4
  18. data/lib/capybara/session.rb +12 -13
  19. data/lib/capybara/spec/session/all_spec.rb +6 -6
  20. data/lib/capybara/spec/session/{assert_current_path.rb → assert_current_path_spec.rb} +2 -3
  21. data/lib/capybara/spec/session/{assert_selector.rb → assert_selector_spec.rb} +0 -0
  22. data/lib/capybara/spec/session/{assert_text.rb → assert_text_spec.rb} +1 -1
  23. data/lib/capybara/spec/session/{assert_title.rb → assert_title_spec.rb} +0 -0
  24. data/lib/capybara/spec/session/check_spec.rb +6 -6
  25. data/lib/capybara/spec/session/click_link_or_button_spec.rb +0 -7
  26. data/lib/capybara/spec/session/current_url_spec.rb +6 -8
  27. data/lib/capybara/spec/session/element/{assert_match_selector.rb → assert_match_selector_spec.rb} +2 -0
  28. data/lib/capybara/spec/session/element/match_css_spec.rb +2 -0
  29. data/lib/capybara/spec/session/element/match_xpath_spec.rb +2 -0
  30. data/lib/capybara/spec/session/element/matches_selector_spec.rb +2 -0
  31. data/lib/capybara/spec/session/find_by_id_spec.rb +1 -1
  32. data/lib/capybara/spec/session/find_field_spec.rb +1 -1
  33. data/lib/capybara/spec/session/first_spec.rb +12 -12
  34. data/lib/capybara/spec/session/frame/frame_title_spec.rb +1 -1
  35. data/lib/capybara/spec/session/frame/frame_url_spec.rb +1 -1
  36. data/lib/capybara/spec/session/frame/switch_to_frame_spec.rb +2 -2
  37. data/lib/capybara/spec/session/frame/within_frame_spec.rb +1 -1
  38. data/lib/capybara/spec/session/has_button_spec.rb +5 -0
  39. data/lib/capybara/spec/session/has_current_path_spec.rb +2 -2
  40. data/lib/capybara/spec/session/has_field_spec.rb +1 -1
  41. data/lib/capybara/spec/session/has_none_selectors_spec.rb +2 -0
  42. data/lib/capybara/spec/session/has_selector_spec.rb +8 -0
  43. data/lib/capybara/spec/session/{headers.rb → headers_spec.rb} +0 -0
  44. data/lib/capybara/spec/session/node_spec.rb +4 -4
  45. data/lib/capybara/spec/session/reset_session_spec.rb +2 -2
  46. data/lib/capybara/spec/session/{response_code.rb → response_code_spec.rb} +0 -0
  47. data/lib/capybara/spec/session/save_and_open_screenshot_spec.rb +2 -1
  48. data/lib/capybara/spec/session/select_spec.rb +27 -1
  49. data/lib/capybara/spec/session/selectors_spec.rb +2 -0
  50. data/lib/capybara/spec/session/uncheck_spec.rb +3 -3
  51. data/lib/capybara/spec/session/visit_spec.rb +17 -10
  52. data/lib/capybara/spec/session/window/become_closed_spec.rb +3 -3
  53. data/lib/capybara/spec/session/window/current_window_spec.rb +2 -2
  54. data/lib/capybara/spec/session/window/open_new_window_spec.rb +3 -3
  55. data/lib/capybara/spec/session/window/switch_to_window_spec.rb +5 -5
  56. data/lib/capybara/spec/session/window/window_opened_by_spec.rb +3 -3
  57. data/lib/capybara/spec/session/window/window_spec.rb +24 -9
  58. data/lib/capybara/spec/session/window/windows_spec.rb +2 -2
  59. data/lib/capybara/spec/session/window/within_window_spec.rb +2 -2
  60. data/lib/capybara/spec/session/within_spec.rb +3 -3
  61. data/lib/capybara/spec/spec_helper.rb +7 -5
  62. data/lib/capybara/spec/views/form.erb +9 -0
  63. data/lib/capybara/version.rb +1 -1
  64. data/spec/basic_node_spec.rb +1 -1
  65. data/spec/capybara_spec.rb +4 -14
  66. data/spec/dsl_spec.rb +5 -3
  67. data/spec/fixtures/certificate.pem +25 -0
  68. data/spec/fixtures/key.pem +27 -0
  69. data/spec/fixtures/selenium_driver_rspec_failure.rb +2 -2
  70. data/spec/fixtures/selenium_driver_rspec_success.rb +2 -2
  71. data/spec/rack_test_spec.rb +8 -6
  72. data/spec/result_spec.rb +22 -2
  73. data/spec/rspec/features_spec.rb +4 -2
  74. data/spec/rspec/scenarios_spec.rb +1 -1
  75. data/spec/rspec/shared_spec_matchers.rb +7 -4
  76. data/spec/rspec/views_spec.rb +2 -1
  77. data/spec/rspec_spec.rb +80 -78
  78. data/spec/selenium_spec_marionette.rb +6 -4
  79. data/spec/server_spec.rb +40 -2
  80. data/spec/session_spec.rb +12 -4
  81. data/spec/shared_selenium_session.rb +106 -84
  82. metadata +11 -9
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Walpole
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain:
12
12
  - gem-public_cert.pem
13
- date: 2018-04-30 00:00:00.000000000 Z
13
+ date: 2018-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable
@@ -342,10 +342,10 @@ files:
342
342
  - lib/capybara/spec/session/all_spec.rb
343
343
  - lib/capybara/spec/session/ancestor_spec.rb
344
344
  - lib/capybara/spec/session/assert_all_of_selectors_spec.rb
345
- - lib/capybara/spec/session/assert_current_path.rb
346
- - lib/capybara/spec/session/assert_selector.rb
347
- - lib/capybara/spec/session/assert_text.rb
348
- - lib/capybara/spec/session/assert_title.rb
345
+ - lib/capybara/spec/session/assert_current_path_spec.rb
346
+ - lib/capybara/spec/session/assert_selector_spec.rb
347
+ - lib/capybara/spec/session/assert_text_spec.rb
348
+ - lib/capybara/spec/session/assert_title_spec.rb
349
349
  - lib/capybara/spec/session/attach_file_spec.rb
350
350
  - lib/capybara/spec/session/body_spec.rb
351
351
  - lib/capybara/spec/session/check_spec.rb
@@ -357,7 +357,7 @@ files:
357
357
  - lib/capybara/spec/session/current_url_spec.rb
358
358
  - lib/capybara/spec/session/dismiss_confirm_spec.rb
359
359
  - lib/capybara/spec/session/dismiss_prompt_spec.rb
360
- - lib/capybara/spec/session/element/assert_match_selector.rb
360
+ - lib/capybara/spec/session/element/assert_match_selector_spec.rb
361
361
  - lib/capybara/spec/session/element/match_css_spec.rb
362
362
  - lib/capybara/spec/session/element/match_xpath_spec.rb
363
363
  - lib/capybara/spec/session/element/matches_selector_spec.rb
@@ -390,13 +390,13 @@ files:
390
390
  - lib/capybara/spec/session/has_text_spec.rb
391
391
  - lib/capybara/spec/session/has_title_spec.rb
392
392
  - lib/capybara/spec/session/has_xpath_spec.rb
393
- - lib/capybara/spec/session/headers.rb
393
+ - lib/capybara/spec/session/headers_spec.rb
394
394
  - lib/capybara/spec/session/html_spec.rb
395
395
  - lib/capybara/spec/session/node_spec.rb
396
396
  - lib/capybara/spec/session/node_wrapper_spec.rb
397
397
  - lib/capybara/spec/session/refresh_spec.rb
398
398
  - lib/capybara/spec/session/reset_session_spec.rb
399
- - lib/capybara/spec/session/response_code.rb
399
+ - lib/capybara/spec/session/response_code_spec.rb
400
400
  - lib/capybara/spec/session/save_and_open_page_spec.rb
401
401
  - lib/capybara/spec/session/save_and_open_screenshot_spec.rb
402
402
  - lib/capybara/spec/session/save_page_spec.rb
@@ -458,6 +458,8 @@ files:
458
458
  - spec/dsl_spec.rb
459
459
  - spec/filter_set_spec.rb
460
460
  - spec/fixtures/capybara.csv
461
+ - spec/fixtures/certificate.pem
462
+ - spec/fixtures/key.pem
461
463
  - spec/fixtures/selenium_driver_rspec_failure.rb
462
464
  - spec/fixtures/selenium_driver_rspec_success.rb
463
465
  - spec/minitest_spec.rb