From 174f604bbca2a21fc8854b022a876574bc899733 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 30 Oct 2020 18:27:38 +0100 Subject: [PATCH] Capybara added for Rails system tests --- Gemfile | 5 +++++ Gemfile.lock | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/Gemfile b/Gemfile index b718349..b018104 100644 --- a/Gemfile +++ b/Gemfile @@ -79,6 +79,11 @@ group :development, :test do gem 'byebug', platform: :mri end +group :test do + gem 'capybara' + gem 'selenium-webdriver' +end + # TODO… https://github.com/galetahub/simple-captcha # Captcha for anonymous reports # gem "galetahub-simple_captcha", :require => "simple_captcha" diff --git a/Gemfile.lock b/Gemfile.lock index bf262d8..031b533 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -64,6 +64,8 @@ GEM minitest (~> 5.1) tzinfo (~> 1.1) zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) ansi (1.5.0) ast (2.4.1) babel-source (5.8.35) @@ -84,6 +86,15 @@ GEM msgpack (~> 1.0) builder (3.2.4) byebug (11.1.3) + capybara (3.33.0) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.5) + xpath (~> 3.2) + childprocess (3.0.0) choice (0.2.0) climate_control (0.2.0) coderay (1.1.3) @@ -228,6 +239,7 @@ GEM pg_search (2.3.2) activerecord (>= 5.2) activesupport (>= 5.2) + public_suffix (4.0.6) puma (3.12.6) rack (2.2.3) rack-contrib (2.2.0) @@ -299,6 +311,7 @@ GEM ruby-progressbar (1.10.1) ruby-vips (2.0.17) ffi (~> 1.9) + rubyzip (2.3.0) sass (3.7.4) sass-listen (~> 4.0.0) sass-listen (4.0.0) @@ -313,6 +326,9 @@ GEM sdoc (0.4.2) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) + selenium-webdriver (3.142.7) + childprocess (>= 0.5, < 4.0) + rubyzip (>= 1.2.2) shellany (0.0.1) slim (4.1.0) temple (>= 0.7.6, < 0.9) @@ -380,6 +396,8 @@ GEM will_paginate (3.3.0) will_paginate-foundation (6.2.1) will_paginate (>= 3.0.3) + xpath (3.2.0) + nokogiri (~> 1.8) yard (0.9.25) zeitwerk (2.4.0) @@ -393,6 +411,7 @@ DEPENDENCIES bootsnap byebug bzip2-ruby! + capybara cookies_eu devise font-awesome-rails @@ -420,6 +439,7 @@ DEPENDENCIES rails-erd sass-rails (~> 5.0) sdoc (~> 0.4.0) + selenium-webdriver slim-rails solargraph spring