Skip to content

Commit

Permalink
Merge pull request #32 from blocknotes/test/test-suite-improvements
Browse files Browse the repository at this point in the history
test: replace cuprite with selenium
  • Loading branch information
blocknotes authored Jul 7, 2024
2 parents 255e188 + 475b833 commit 722291d
Show file tree
Hide file tree
Showing 25 changed files with 115 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Exclude:
- bin/*
- gemfiles/*
Expand Down
1 change: 0 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ appraise 'rails60-administrate' do # latest administrate
gem 'psych', '~> 3.0'
gem 'rails', '~> 6.0.0'
gem 'ransack', '~> 2.3'
gem "selenium-webdriver", "4.1.0", require: false # Fix
gem 'sqlite3', '~> 1.3'
end

Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ group :development, :test do

# Testing
gem 'capybara'
gem 'cuprite'
gem 'rails-controller-testing'
gem 'rspec_junit_formatter'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'simplecov', require: false

# Linters
gem 'fasterer'
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails60_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ gem "ffi", "1.15.5"
gem "psych", "~> 3.0"
gem "rails", "~> 6.0.0"
gem "ransack", "~> 2.3"
gem "selenium-webdriver", "4.1.0", require: false
gem "sqlite3", "~> 1.3"

group :development, :test do
gem "appraisal"
gem "puma"
gem "capybara"
gem "cuprite"
gem "rails-controller-testing"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
32 changes: 17 additions & 15 deletions gemfiles/rails60_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
builder (3.3.0)
capybara (3.40.0)
addressable
Expand All @@ -88,23 +89,15 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (4.1.0)
coderay (1.1.3)
concurrent-ruby (1.3.3)
crass (1.0.6)
cuprite (0.15.1)
capybara (~> 3.0)
ferrum (~> 0.15.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
ferrum (0.15)
addressable (~> 2.5)
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.15.5)
globalid (1.1.0)
activesupport (>= 5.0)
Expand All @@ -128,6 +121,7 @@ GEM
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -279,11 +273,19 @@ GEM
sprockets-rails
tilt
selectize-rails (0.12.6)
selenium-webdriver (4.1.0)
childprocess (>= 0.5, < 5.0)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand All @@ -305,7 +307,7 @@ GEM
tzinfo (1.2.11)
thread_safe (~> 0.1)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand All @@ -325,7 +327,6 @@ DEPENDENCIES
administrate_ransack!
appraisal
capybara
cuprite
fasterer
ffi (= 1.15.5)
pry-rails
Expand All @@ -341,7 +342,8 @@ DEPENDENCIES
rubocop-performance
rubocop-rails
rubocop-rspec
selenium-webdriver (= 4.1.0)
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails61_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ group :development, :test do
gem "appraisal"
gem "puma"
gem "capybara"
gem "cuprite"
gem "rails-controller-testing"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
29 changes: 19 additions & 10 deletions gemfiles/rails61_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
builder (3.3.0)
capybara (3.40.0)
addressable
Expand All @@ -95,19 +96,12 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.3.3)
crass (1.0.6)
cuprite (0.15.1)
capybara (~> 3.0)
ferrum (~> 0.15.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
ferrum (0.15)
addressable (~> 2.5)
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.15.5)
globalid (1.2.1)
activesupport (>= 6.1)
Expand All @@ -131,6 +125,7 @@ GEM
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -271,6 +266,7 @@ GEM
ruby_parser (3.21.0)
racc (~> 1.5)
sexp_processor (~> 4.16)
rubyzip (2.3.2)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
Expand All @@ -280,7 +276,19 @@ GEM
sprockets-rails
tilt
selectize-rails (0.12.6)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand All @@ -301,7 +309,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand All @@ -321,7 +329,6 @@ DEPENDENCIES
administrate_ransack!
appraisal
capybara
cuprite
fasterer
ffi (= 1.15.5)
pry-rails
Expand All @@ -336,6 +343,8 @@ DEPENDENCIES
rubocop-performance
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails70_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ group :development, :test do
gem "appraisal"
gem "puma"
gem "capybara"
gem "cuprite"
gem "rails-controller-testing"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
29 changes: 19 additions & 10 deletions gemfiles/rails70_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
builder (3.3.0)
capybara (3.40.0)
addressable
Expand All @@ -101,19 +102,12 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.3.3)
crass (1.0.6)
cuprite (0.15.1)
capybara (~> 3.0)
ferrum (~> 0.15.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
ferrum (0.15)
addressable (~> 2.5)
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.15.5)
globalid (1.2.1)
activesupport (>= 6.1)
Expand All @@ -137,6 +131,7 @@ GEM
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -277,6 +272,7 @@ GEM
ruby_parser (3.21.0)
racc (~> 1.5)
sexp_processor (~> 4.16)
rubyzip (2.3.2)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
Expand All @@ -286,7 +282,19 @@ GEM
sprockets-rails
tilt
selectize-rails (0.12.6)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand All @@ -307,7 +315,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand All @@ -327,7 +335,6 @@ DEPENDENCIES
administrate_ransack!
appraisal
capybara
cuprite
fasterer
ffi (= 1.15.5)
pry-rails
Expand All @@ -342,6 +349,8 @@ DEPENDENCIES
rubocop-performance
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails71_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ group :development, :test do
gem "appraisal"
gem "puma"
gem "capybara"
gem "cuprite"
gem "rails-controller-testing"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
Loading

0 comments on commit 722291d

Please sign in to comment.