Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ group :development do
end

group :test do
gem 'apparition'
gem 'capybara'
gem 'rspec_junit_formatter' # needed for test coverage in CircleCI
gem 'selenium-webdriver' # for js testing
gem 'simplecov'
gem 'webdrivers' # installs the chrome for selenium tests
gem 'webmock', require: false
end

Expand Down
14 changes: 4 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ GEM
public_suffix (>= 2.0.2, < 5.0)
airbrussh (1.4.0)
sshkit (>= 1.6.1, != 1.7.0)
apparition (0.6.0)
capybara (~> 3.13, < 4)
websocket-driver (>= 0.6.5)
ast (2.4.2)
barby (0.6.8)
bcrypt (3.1.16)
Expand Down Expand Up @@ -124,7 +127,6 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (3.0.0)
cocina-models (0.61.2)
activesupport
dry-struct (~> 1.0)
Expand Down Expand Up @@ -504,9 +506,6 @@ GEM
cocina-models (~> 0.61.0)
dry-monads
faraday (>= 0.16)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
semantic_range (3.0.0)
sidekiq (6.2.1)
connection_pool (>= 2.2.2)
Expand Down Expand Up @@ -559,10 +558,6 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webdrivers (4.6.0)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (>= 3.0, < 4.0)
webmock (3.13.0)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand All @@ -587,6 +582,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
apparition
barby
blacklight (~> 7.18)
blacklight-hierarchy (~> 5.1)
Expand Down Expand Up @@ -641,7 +637,6 @@ DEPENDENCIES
ruby-prof
rubyzip
sdr-client (~> 0.58)
selenium-webdriver
sidekiq (~> 6.0)
simplecov
spring
Expand All @@ -650,7 +645,6 @@ DEPENDENCIES
turbo-rails (~> 0.5.9)
view_component (~> 2.31.1)
web-console
webdrivers
webmock
webpacker (~> 5.0)
zip_tricks (= 5.3.1)
Expand Down
17 changes: 17 additions & 0 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# typed: strict
# frozen_string_literal: true

require 'capybara/apparition'
require 'capybara/rails'
require 'capybara/rspec'

# Uncomment for a headed browser:
# Capybara.register_driver :apparition do |app|
# Capybara::Apparition::Driver.new(app, headless: false)
# end

Capybara.javascript_driver = :apparition
Capybara.disable_animation = true
Capybara.enable_aria_label = true
Capybara.server = :puma, { Silent: true }
Capybara.default_max_wait_time = 7 # default is 2
21 changes: 0 additions & 21 deletions spec/support/selenium_webdriver.rb

This file was deleted.