Skip to content

Commit

Permalink
ISSUE-1981: Switch webdrivers to selenium-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukomoynikov committed May 27, 2024
1 parent 82080d6 commit 34ba316
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ FROM ruby:3.2.2
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y --force-yes build-essential libpq-dev nodejs

# Install latest chrome dev package
RUN set -ex; \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& wget -q -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y --force-yes google-chrome-stable --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /planner

COPY Gemfile Gemfile.lock ./
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem 'capybara'
gem 'selenium-webdriver'
gem 'webdrivers'
gem 'database_cleaner'
gem 'shoulda-matchers', '~> 6.2'
gem 'simplecov', require: false
Expand Down
11 changes: 4 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ GEM
ast (2.4.2)
autoprefixer-rails (10.4.15.0)
execjs (~> 2)
base64 (0.2.0)
better_errors (2.10.1)
erubi (>= 1.0.0)
rack (>= 0.9.0)
Expand Down Expand Up @@ -422,7 +423,8 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
selenium-webdriver (4.10.0)
selenium-webdriver (4.21.1)
base64 (~> 0.2)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
Expand Down Expand Up @@ -480,11 +482,7 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webdrivers (5.3.1)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0, < 4.11)
websocket (1.2.9)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down Expand Up @@ -570,7 +568,6 @@ DEPENDENCIES
turbo-rails
tzinfo-data
web-console (>= 4.1.0)
webdrivers

RUBY VERSION
ruby 3.2.2p137
Expand Down
2 changes: 0 additions & 2 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'webdrivers'

Capybara.register_driver :chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new

Expand Down

0 comments on commit 34ba316

Please sign in to comment.