Skip to content

Commit

Permalink
Merge pull request #2082 from Rukomoynikov/issue-1981-switch-webdrive…
Browse files Browse the repository at this point in the history
…rs-to-native-selenium-manager

ISSUE-1981: Switch webdrivers to selenium-manager
  • Loading branch information
matyikriszta authored Jul 18, 2024
2 parents 1a8af19 + 34ba316 commit 1009895
Show file tree
Hide file tree
Showing 4 changed files with 3 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
10 changes: 3 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,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 @@ -482,11 +483,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 @@ -572,7 +569,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 1009895

Please sign in to comment.