From 3b6ceae25caf326c67728633279336f4adea3118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 2 Mar 2019 18:22:20 +0100 Subject: [PATCH] Update gems capybara 3.1.1 needs date input fields to be filled with native dates. --- Gemfile | 4 +- Gemfile.lock | 127 +++++++++++++++++++------------------ test/system/checks_test.rb | 5 +- 3 files changed, 68 insertions(+), 68 deletions(-) diff --git a/Gemfile b/Gemfile index 82fd971..5dc2167 100644 --- a/Gemfile +++ b/Gemfile @@ -90,9 +90,9 @@ end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15', '< 4.0' - gem 'selenium-webdriver', '~> 3.12.0' + gem 'selenium-webdriver' # Easy installation and use of chromedriver to run system tests with Chrome - gem 'chromedriver-helper', '< 2' + gem 'chromedriver-helper' gem 'launchy' gem "database_cleaner" diff --git a/Gemfile.lock b/Gemfile.lock index 45faa40..a8da6cc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -42,14 +42,14 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - addressable (2.5.2) + addressable (2.6.0) public_suffix (>= 2.0.2, < 4.0) - airbrussh (1.3.0) + airbrussh (1.3.1) sshkit (>= 1.6.1, != 1.7.0) - annotate (2.7.3) + annotate (2.7.4) activerecord (>= 3.2, < 6.0) rake (>= 10.4, < 13.0) - archive-zip (0.11.0) + archive-zip (0.12.0) io-like (~> 0.3.0) arel (9.0.0) ast (2.4.0) @@ -58,38 +58,38 @@ GEM bindex (0.5.0) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) - bootsnap (1.3.0) + bootsnap (1.4.1) msgpack (~> 1.0) builder (3.2.3) - byebug (10.0.2) - capistrano (3.10.2) + byebug (11.0.0) + capistrano (3.11.0) airbrussh (>= 1.0.0) i18n rake (>= 10.0.0) sshkit (>= 1.9.0) - capistrano-bundler (1.3.0) + capistrano-bundler (1.5.0) capistrano (~> 3.1) - sshkit (~> 1.2) capistrano-rails (1.4.0) capistrano (~> 3.1) capistrano-bundler (~> 1.1) - capistrano-rbenv (2.1.3) + capistrano-rbenv (2.1.4) capistrano (~> 3.1) sshkit (~> 1.3) capistrano3-puma (3.1.1) capistrano (~> 3.7) capistrano-bundler puma (~> 3.4) - capybara (3.1.0) + capybara (3.14.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) rack-test (>= 0.6.3) - xpath (~> 3.0) + regexp_parser (~> 1.2) + xpath (~> 3.2) childprocess (0.9.0) ffi (~> 1.0, >= 1.0.11) - chromedriver-helper (1.2.0) + chromedriver-helper (2.1.0) archive-zip (~> 0.10) nokogiri (~> 1.8) chronic (0.10.2) @@ -98,14 +98,14 @@ GEM crass (1.0.4) database_cleaner (1.7.0) debug_inspector (0.0.3) - devise (4.4.3) + devise (4.6.1) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0, < 6.0) responders warden (~> 1.2.3) - devise-i18n (1.6.2) - devise (>= 4.4) + devise-i18n (1.8.0) + devise (>= 4.6) docile (1.3.1) erubi (1.8.0) execjs (2.7.0) @@ -114,11 +114,11 @@ GEM factory_bot_rails (5.0.1) factory_bot (~> 5.0.0) railties (>= 4.2.0) - ffi (1.9.23) + ffi (1.10.0) formatador (0.2.5) globalid (0.4.2) activesupport (>= 4.2.0) - guard (2.14.2) + guard (2.15.0) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) lumberjack (>= 1.0.12, < 2.0) @@ -134,14 +134,14 @@ GEM has_scope (0.7.2) actionpack (>= 4.1) activesupport (>= 4.1) - hashie (3.5.7) + hashie (3.6.0) i18n (1.5.3) concurrent-ruby (~> 1.0) io-like (0.3.0) - jbuilder (2.7.0) + jbuilder (2.8.0) activesupport (>= 4.2.0) multi_json (>= 1.2) - json (2.1.0) + json (2.2.0) kaminari (1.1.1) activesupport (>= 4.1.0) kaminari-actionview (= 1.1.1) @@ -156,7 +156,7 @@ GEM kaminari-core (1.1.1) launchy (2.4.3) addressable (~> 2.3) - letter_opener (1.6.0) + letter_opener (1.7.0) launchy (~> 2.2) letter_opener_web (1.3.4) actionmailer (>= 3.2) @@ -183,44 +183,44 @@ GEM mini_mime (1.0.1) mini_portile2 (2.4.0) minitest (5.11.3) - msgpack (1.2.4) + msgpack (1.2.7) multi_json (1.13.1) - mysql2 (0.5.1) + mysql2 (0.5.2) naught (1.1.0) nenv (0.3.0) net-scp (1.2.1) net-ssh (>= 2.6.5) - net-ssh (4.2.0) + net-ssh (5.1.0) nio4r (2.3.1) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) - octicons (7.3.0) + octicons (8.5.0) nokogiri (>= 1.6.3.1) open4 (1.3.4) orm_adapter (0.5.0) - parallel (1.12.1) - parser (2.5.1.0) + parallel (1.14.0) + parser (2.6.0.0) ast (~> 2.4.0) - powerpack (0.1.1) - pry (0.11.3) + powerpack (0.1.2) + pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) - pry-byebug (3.6.0) - byebug (~> 10.0) + pry-byebug (3.7.0) + byebug (~> 11.0) pry (~> 0.10) - pry-rails (0.3.6) + pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (3.0.2) - puma (3.11.4) + public_suffix (3.0.3) + puma (3.12.0) pundit (1.1.0) activesupport (>= 3.0.0) rack (2.0.6) - rack-contrib (2.0.1) + rack-contrib (2.1.0) rack (~> 2.0) - rack-proxy (0.6.4) + rack-proxy (0.6.5) rack rack-test (1.1.0) rack (>= 1.0, < 3) @@ -242,7 +242,7 @@ GEM nokogiri (>= 1.6) rails-html-sanitizer (1.0.4) loofah (~> 2.2, >= 2.2.2) - rails-i18n (5.1.1) + rails-i18n (5.1.3) i18n (>= 0.7, < 2) railties (>= 5.0, < 6) railties (5.2.2) @@ -254,13 +254,14 @@ GEM rainbow (3.0.0) rake (12.3.2) rb-fsevent (0.10.3) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) + rb-inotify (0.10.0) + ffi (~> 1.0) rbnacl (4.0.2) ffi - responders (2.4.0) - actionpack (>= 4.2.0, < 5.3) - railties (>= 4.2.0, < 5.3) + regexp_parser (1.3.0) + responders (2.4.1) + actionpack (>= 4.2.0, < 6.0) + railties (>= 4.2.0, < 6.0) rubocop (0.56.0) parallel (~> 1.10) parser (>= 2.5) @@ -268,10 +269,10 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) - ruby-progressbar (1.9.0) + ruby-progressbar (1.10.0) ruby_dep (1.5.0) - rubyzip (1.2.1) - sass (3.5.6) + rubyzip (1.2.2) + sass (3.7.3) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) @@ -282,11 +283,11 @@ GEM sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) - selenium-webdriver (3.12.0) + selenium-webdriver (3.141.0) childprocess (~> 0.5) - rubyzip (~> 1.2) + rubyzip (~> 1.2, >= 1.2.2) shellany (0.0.1) - simple_form (4.0.1) + simple_form (4.1.0) actionpack (>= 5.0) activemodel (>= 5.0) simplecov (0.16.1) @@ -306,28 +307,28 @@ GEM actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) - sshkit (1.16.1) + sshkit (1.18.2) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) thor (0.20.3) thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.1.1) - turbolinks-source (~> 5.1) - turbolinks-source (5.1.0) + tilt (2.0.9) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) tzinfo (1.2.5) thread_safe (~> 0.1) - uglifier (4.1.10) + uglifier (4.1.20) execjs (>= 0.3.0, < 3) - unicode-display_width (1.3.2) - warden (1.2.7) - rack (>= 1.0) - web-console (3.6.2) + unicode-display_width (1.4.1) + warden (1.2.8) + rack (>= 2.0.6) + web-console (3.7.0) actionview (>= 5.0) activemodel (>= 5.0) bindex (>= 0.4.0) railties (>= 5.0) - webpacker (3.5.3) + webpacker (3.5.5) activesupport (>= 4.2) rack-proxy (>= 0.6.1) railties (>= 4.2) @@ -336,7 +337,7 @@ GEM websocket-extensions (0.1.3) whenever (0.10.0) chronic (>= 0.6.3) - xpath (3.0.0) + xpath (3.2.0) nokogiri (~> 1.8) PLATFORMS @@ -353,7 +354,7 @@ DEPENDENCIES capistrano-rbenv capistrano3-puma capybara (>= 2.15, < 4.0) - chromedriver-helper (< 2) + chromedriver-helper database_cleaner devise (~> 4.4) devise-i18n (~> 1.6) @@ -382,7 +383,7 @@ DEPENDENCIES rbnacl (>= 3.2, < 5.0) rubocop (~> 0.56.0) sass-rails (~> 5.0) - selenium-webdriver (~> 3.12.0) + selenium-webdriver simple_form (~> 4.0) simplecov spring diff --git a/test/system/checks_test.rb b/test/system/checks_test.rb index 14b4fb4..4546c45 100644 --- a/test/system/checks_test.rb +++ b/test/system/checks_test.rb @@ -32,9 +32,8 @@ class ChecksTest < ApplicationSystemTestCase fill_in("check[domain]", with: domain) page.find("body").click # simulate blur - fill_in("check[domain_expires_at]", with: "2022-04-05") - - click_button + fill_in("check[domain_expires_at]", with: Date.new(2022, 4, 5)) + click_button "Create Check" assert_equal checks_path, page.current_path