update: use apparition - the successor of poltergeist
In the long run we probably want to migrate to selenium as it looks like apparition is also not maintained anymore.
This commit is contained in:
parent
d16b09a827
commit
3150553338
9
Gemfile
9
Gemfile
|
@ -220,13 +220,8 @@ group :test, :ci do
|
|||
|
||||
gem 'capybara', require: false
|
||||
|
||||
# Capybara driver with javascript capabilities using phantomjs
|
||||
# locked to major version for stable API
|
||||
gem 'poltergeist', '~> 1.5', require: false
|
||||
|
||||
# Headless webkit browser for testing, fast and with javascript
|
||||
# Version newer than 1.8 is required by current poltergeist.
|
||||
gem 'phantomjs-binaries', '~> 2.1.1', require: false
|
||||
# Capybara driver with javascript capabilities using chromes CDP
|
||||
gem 'apparition', github: 'twalpole/apparition', ref: 'ca86be4d54af835d531dbcd2b86e7b2c77f85f34'
|
||||
|
||||
# The castle_gates tests are based on sqlite
|
||||
gem 'sqlite3'
|
||||
|
|
21
Gemfile.lock
21
Gemfile.lock
|
@ -1,3 +1,12 @@
|
|||
GIT
|
||||
remote: https://github.com/twalpole/apparition.git
|
||||
revision: ca86be4d54af835d531dbcd2b86e7b2c77f85f34
|
||||
ref: ca86be4d54af835d531dbcd2b86e7b2c77f85f34
|
||||
specs:
|
||||
apparition (0.6.0)
|
||||
capybara (~> 3.13, < 4)
|
||||
websocket-driver (>= 0.6.5)
|
||||
|
||||
GIT
|
||||
remote: https://github.com/voxmedia/prototype-rails.git
|
||||
revision: 740f70179a7c2a1d8619518294f75cd3755a8f68
|
||||
|
@ -107,7 +116,6 @@ GEM
|
|||
regexp_parser (>= 1.5, < 3.0)
|
||||
xpath (~> 3.2)
|
||||
chronic (0.10.2)
|
||||
cliver (0.3.2)
|
||||
concurrent-ruby (1.2.2)
|
||||
crabgrass_media (0.5.0)
|
||||
activesupport (~> 6.0)
|
||||
|
@ -190,12 +198,6 @@ GEM
|
|||
nio4r (2.5.8)
|
||||
nokogiri (1.14.2-x86_64-linux)
|
||||
racc (~> 1.4)
|
||||
phantomjs-binaries (2.1.1.1)
|
||||
sys-uname (= 0.9.0)
|
||||
poltergeist (1.18.1)
|
||||
capybara (>= 2.1, < 4)
|
||||
cliver (~> 0.3.1)
|
||||
websocket-driver (>= 0.2.0)
|
||||
public_suffix (5.0.1)
|
||||
pundit (2.3.0)
|
||||
activesupport (>= 3.0.0)
|
||||
|
@ -266,8 +268,6 @@ GEM
|
|||
activesupport (>= 5.2)
|
||||
sprockets (>= 3.0.0)
|
||||
sqlite3 (1.6.2-x86_64-linux)
|
||||
sys-uname (0.9.0)
|
||||
ffi (>= 1.0.0)
|
||||
temple (0.10.0)
|
||||
thinking-sphinx (5.5.1)
|
||||
activerecord (>= 4.2.0)
|
||||
|
@ -318,6 +318,7 @@ DEPENDENCIES
|
|||
acts-as-taggable-on (~> 8.1)
|
||||
acts_as_list (~> 1.0)
|
||||
after_commit_everywhere (~> 1.1)
|
||||
apparition!
|
||||
bcrypt (~> 3.1.7)
|
||||
bootsnap (~> 1.9)
|
||||
bundler-audit
|
||||
|
@ -341,8 +342,6 @@ DEPENDENCIES
|
|||
minitest (~> 5.10)
|
||||
mysql2 (~> 0.5)
|
||||
nokogiri (~> 1.12)
|
||||
phantomjs-binaries (~> 2.1.1)
|
||||
poltergeist (~> 1.5)
|
||||
prototype-rails!
|
||||
pundit (~> 2.1)
|
||||
rails (~> 6.1.4)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'integration_test'
|
||||
require 'capybara/poltergeist'
|
||||
require 'capybara/apparition'
|
||||
|
||||
# require all javascript integration helpers
|
||||
Dir[File.dirname(__FILE__) + '/helpers/integration/javascript/*.rb'].each do |file|
|
||||
|
@ -11,7 +11,7 @@ class JavascriptIntegrationTest < IntegrationTest
|
|||
include AjaxPending
|
||||
include Autocomplete
|
||||
|
||||
Capybara.javascript_driver = :poltergeist
|
||||
Capybara.javascript_driver = :apparition
|
||||
self.use_transactional_tests = false
|
||||
|
||||
def setup
|
||||
|
|
Loading…
Reference in New Issue