capybara 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +10 -0
- data/lib/capybara.rb +1 -1
- data/lib/capybara/helpers.rb +1 -1
- data/lib/capybara/minitest/spec.rb +2 -0
- data/lib/capybara/node/actions.rb +45 -5
- data/lib/capybara/queries/match_query.rb +2 -0
- data/lib/capybara/queries/selector_query.rb +3 -4
- data/lib/capybara/queries/text_query.rb +4 -5
- data/lib/capybara/rack_test/node.rb +6 -4
- data/lib/capybara/result.rb +1 -1
- data/lib/capybara/rspec/compound.rb +2 -0
- data/lib/capybara/selector.rb +72 -18
- data/lib/capybara/selector/css.rb +2 -0
- data/lib/capybara/selenium/driver.rb +14 -15
- data/lib/capybara/selenium/node.rb +23 -29
- data/lib/capybara/server.rb +29 -4
- data/lib/capybara/session.rb +12 -13
- data/lib/capybara/spec/session/all_spec.rb +6 -6
- data/lib/capybara/spec/session/{assert_current_path.rb → assert_current_path_spec.rb} +2 -3
- data/lib/capybara/spec/session/{assert_selector.rb → assert_selector_spec.rb} +0 -0
- data/lib/capybara/spec/session/{assert_text.rb → assert_text_spec.rb} +1 -1
- data/lib/capybara/spec/session/{assert_title.rb → assert_title_spec.rb} +0 -0
- data/lib/capybara/spec/session/check_spec.rb +6 -6
- data/lib/capybara/spec/session/click_link_or_button_spec.rb +0 -7
- data/lib/capybara/spec/session/current_url_spec.rb +6 -8
- data/lib/capybara/spec/session/element/{assert_match_selector.rb → assert_match_selector_spec.rb} +2 -0
- data/lib/capybara/spec/session/element/match_css_spec.rb +2 -0
- data/lib/capybara/spec/session/element/match_xpath_spec.rb +2 -0
- data/lib/capybara/spec/session/element/matches_selector_spec.rb +2 -0
- data/lib/capybara/spec/session/find_by_id_spec.rb +1 -1
- data/lib/capybara/spec/session/find_field_spec.rb +1 -1
- data/lib/capybara/spec/session/first_spec.rb +12 -12
- data/lib/capybara/spec/session/frame/frame_title_spec.rb +1 -1
- data/lib/capybara/spec/session/frame/frame_url_spec.rb +1 -1
- data/lib/capybara/spec/session/frame/switch_to_frame_spec.rb +2 -2
- data/lib/capybara/spec/session/frame/within_frame_spec.rb +1 -1
- data/lib/capybara/spec/session/has_button_spec.rb +5 -0
- data/lib/capybara/spec/session/has_current_path_spec.rb +2 -2
- data/lib/capybara/spec/session/has_field_spec.rb +1 -1
- data/lib/capybara/spec/session/has_none_selectors_spec.rb +2 -0
- data/lib/capybara/spec/session/has_selector_spec.rb +8 -0
- data/lib/capybara/spec/session/{headers.rb → headers_spec.rb} +0 -0
- data/lib/capybara/spec/session/node_spec.rb +4 -4
- data/lib/capybara/spec/session/reset_session_spec.rb +2 -2
- data/lib/capybara/spec/session/{response_code.rb → response_code_spec.rb} +0 -0
- data/lib/capybara/spec/session/save_and_open_screenshot_spec.rb +2 -1
- data/lib/capybara/spec/session/select_spec.rb +27 -1
- data/lib/capybara/spec/session/selectors_spec.rb +2 -0
- data/lib/capybara/spec/session/uncheck_spec.rb +3 -3
- data/lib/capybara/spec/session/visit_spec.rb +17 -10
- data/lib/capybara/spec/session/window/become_closed_spec.rb +3 -3
- data/lib/capybara/spec/session/window/current_window_spec.rb +2 -2
- data/lib/capybara/spec/session/window/open_new_window_spec.rb +3 -3
- data/lib/capybara/spec/session/window/switch_to_window_spec.rb +5 -5
- data/lib/capybara/spec/session/window/window_opened_by_spec.rb +3 -3
- data/lib/capybara/spec/session/window/window_spec.rb +24 -9
- data/lib/capybara/spec/session/window/windows_spec.rb +2 -2
- data/lib/capybara/spec/session/window/within_window_spec.rb +2 -2
- data/lib/capybara/spec/session/within_spec.rb +3 -3
- data/lib/capybara/spec/spec_helper.rb +7 -5
- data/lib/capybara/spec/views/form.erb +9 -0
- data/lib/capybara/version.rb +1 -1
- data/spec/basic_node_spec.rb +1 -1
- data/spec/capybara_spec.rb +4 -14
- data/spec/dsl_spec.rb +5 -3
- data/spec/fixtures/certificate.pem +25 -0
- data/spec/fixtures/key.pem +27 -0
- data/spec/fixtures/selenium_driver_rspec_failure.rb +2 -2
- data/spec/fixtures/selenium_driver_rspec_success.rb +2 -2
- data/spec/rack_test_spec.rb +8 -6
- data/spec/result_spec.rb +22 -2
- data/spec/rspec/features_spec.rb +4 -2
- data/spec/rspec/scenarios_spec.rb +1 -1
- data/spec/rspec/shared_spec_matchers.rb +7 -4
- data/spec/rspec/views_spec.rb +2 -1
- data/spec/rspec_spec.rb +80 -78
- data/spec/selenium_spec_marionette.rb +6 -4
- data/spec/server_spec.rb +40 -2
- data/spec/session_spec.rb +12 -4
- data/spec/shared_selenium_session.rb +106 -84
- 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
|
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-
|
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/
|
346
|
-
- lib/capybara/spec/session/
|
347
|
-
- lib/capybara/spec/session/
|
348
|
-
- lib/capybara/spec/session/
|
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/
|
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/
|
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/
|
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
|