merge master
This commit is contained in:
commit
2892a56a1c
12 changed files with 70 additions and 70 deletions
4
Gemfile
4
Gemfile
|
|
@ -10,7 +10,7 @@ if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.8.4')
|
||||||
end
|
end
|
||||||
|
|
||||||
# as web framework
|
# as web framework
|
||||||
gem 'rails', '~> 5.2.4.3'
|
gem 'rails', '~> 5.2'
|
||||||
|
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
gem 'puma', '~> 3.0'
|
gem 'puma', '~> 3.0'
|
||||||
|
|
@ -81,7 +81,7 @@ gem 'formtastic-bootstrap'
|
||||||
|
|
||||||
# as the JavaScript library
|
# as the JavaScript library
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
gem 'jquery-ui-rails', '~> 4.2.1'
|
gem 'jquery-ui-rails', '~> 6.0.1'
|
||||||
|
|
||||||
# for languages validation
|
# for languages validation
|
||||||
gem 'iso-639'
|
gem 'iso-639'
|
||||||
|
|
|
||||||
108
Gemfile.lock
108
Gemfile.lock
|
|
@ -13,25 +13,25 @@ GEM
|
||||||
remote: https://rails-assets.org/
|
remote: https://rails-assets.org/
|
||||||
specs:
|
specs:
|
||||||
Ascii85 (1.0.3)
|
Ascii85 (1.0.3)
|
||||||
actioncable (5.2.4.3)
|
actioncable (5.2.4.4)
|
||||||
actionpack (= 5.2.4.3)
|
actionpack (= 5.2.4.4)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailer (5.2.4.3)
|
actionmailer (5.2.4.4)
|
||||||
actionpack (= 5.2.4.3)
|
actionpack (= 5.2.4.4)
|
||||||
actionview (= 5.2.4.3)
|
actionview (= 5.2.4.4)
|
||||||
activejob (= 5.2.4.3)
|
activejob (= 5.2.4.4)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (5.2.4.3)
|
actionpack (5.2.4.4)
|
||||||
actionview (= 5.2.4.3)
|
actionview (= 5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
rack (~> 2.0, >= 2.0.8)
|
rack (~> 2.0, >= 2.0.8)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (5.2.4.3)
|
actionview (5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
|
|
@ -41,20 +41,20 @@ GEM
|
||||||
activemodel (>= 4.1, < 6.1)
|
activemodel (>= 4.1, < 6.1)
|
||||||
case_transform (>= 0.2)
|
case_transform (>= 0.2)
|
||||||
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
||||||
activejob (5.2.4.3)
|
activejob (5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (5.2.4.3)
|
activemodel (5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
activerecord (5.2.4.3)
|
activerecord (5.2.4.4)
|
||||||
activemodel (= 5.2.4.3)
|
activemodel (= 5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
arel (>= 9.0)
|
arel (>= 9.0)
|
||||||
activestorage (5.2.4.3)
|
activestorage (5.2.4.4)
|
||||||
actionpack (= 5.2.4.3)
|
actionpack (= 5.2.4.4)
|
||||||
activerecord (= 5.2.4.3)
|
activerecord (= 5.2.4.4)
|
||||||
marcel (~> 0.3.1)
|
marcel (~> 0.3.1)
|
||||||
activesupport (5.2.4.3)
|
activesupport (5.2.4.4)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
|
|
@ -111,7 +111,7 @@ GEM
|
||||||
fastimage
|
fastimage
|
||||||
case_transform (0.2)
|
case_transform (0.2)
|
||||||
activesupport
|
activesupport
|
||||||
chartkick (3.3.0)
|
chartkick (3.4.0)
|
||||||
childprocess (3.0.0)
|
childprocess (3.0.0)
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
chunky_png (1.3.11)
|
chunky_png (1.3.11)
|
||||||
|
|
@ -120,12 +120,12 @@ GEM
|
||||||
aws_cf_signer
|
aws_cf_signer
|
||||||
rest-client
|
rest-client
|
||||||
cocoon (1.2.14)
|
cocoon (1.2.14)
|
||||||
codecov (0.1.14)
|
codecov (0.2.11)
|
||||||
json
|
json
|
||||||
simplecov
|
simplecov
|
||||||
url
|
|
||||||
coderay (1.1.1)
|
coderay (1.1.1)
|
||||||
concurrent-ruby (1.1.6)
|
concurrent-ruby (1.1.7)
|
||||||
|
connection_pool (2.2.2)
|
||||||
countable-rails (0.0.1)
|
countable-rails (0.0.1)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
countries (3.0.0)
|
countries (3.0.0)
|
||||||
|
|
@ -156,7 +156,7 @@ GEM
|
||||||
devise_ichain_authenticatable (0.3.2)
|
devise_ichain_authenticatable (0.3.2)
|
||||||
devise (>= 2.2)
|
devise (>= 2.2)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
docile (1.3.1)
|
docile (1.3.2)
|
||||||
domain_name (0.5.20180417)
|
domain_name (0.5.20180417)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
dotenv (2.7.5)
|
dotenv (2.7.5)
|
||||||
|
|
@ -230,7 +230,7 @@ GEM
|
||||||
htmlentities (4.3.4)
|
htmlentities (4.3.4)
|
||||||
http-cookie (1.0.3)
|
http-cookie (1.0.3)
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
i18n (1.8.3)
|
i18n (1.8.5)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
i18n_data (0.8.0)
|
i18n_data (0.8.0)
|
||||||
inversion (1.1.1)
|
inversion (1.1.1)
|
||||||
|
|
@ -243,9 +243,9 @@ GEM
|
||||||
rails-dom-testing (>= 1, < 3)
|
rails-dom-testing (>= 1, < 3)
|
||||||
railties (>= 4.2.0)
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
jquery-ui-rails (4.2.1)
|
jquery-ui-rails (6.0.1)
|
||||||
railties (>= 3.2.16)
|
railties (>= 3.2.16)
|
||||||
json (2.3.0)
|
json (2.3.1)
|
||||||
json-schema (2.8.1)
|
json-schema (2.8.1)
|
||||||
addressable (>= 2.4)
|
addressable (>= 2.4)
|
||||||
jsonapi-renderer (0.2.2)
|
jsonapi-renderer (0.2.2)
|
||||||
|
|
@ -265,7 +265,7 @@ GEM
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
ruby_dep (~> 1.2)
|
ruby_dep (~> 1.2)
|
||||||
loggability (0.14.0)
|
loggability (0.14.0)
|
||||||
loofah (2.6.0)
|
loofah (2.7.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
lumberjack (1.0.12)
|
lumberjack (1.0.12)
|
||||||
|
|
@ -284,7 +284,7 @@ GEM
|
||||||
mini_magick (4.9.5)
|
mini_magick (4.9.5)
|
||||||
mini_mime (1.0.2)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minitest (5.14.1)
|
minitest (5.14.2)
|
||||||
momentjs-rails (2.20.1)
|
momentjs-rails (2.20.1)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
monetize (1.9.2)
|
monetize (1.9.2)
|
||||||
|
|
@ -301,7 +301,7 @@ GEM
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
nenv (0.3.0)
|
nenv (0.3.0)
|
||||||
netrc (0.11.0)
|
netrc (0.11.0)
|
||||||
nio4r (2.5.2)
|
nio4r (2.5.4)
|
||||||
nokogiri (1.10.10)
|
nokogiri (1.10.10)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
notiffany (0.1.1)
|
notiffany (0.1.1)
|
||||||
|
|
@ -379,18 +379,18 @@ GEM
|
||||||
ruby-openid (>= 2.1.8)
|
ruby-openid (>= 2.1.8)
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (5.2.4.3)
|
rails (5.2.4.4)
|
||||||
actioncable (= 5.2.4.3)
|
actioncable (= 5.2.4.4)
|
||||||
actionmailer (= 5.2.4.3)
|
actionmailer (= 5.2.4.4)
|
||||||
actionpack (= 5.2.4.3)
|
actionpack (= 5.2.4.4)
|
||||||
actionview (= 5.2.4.3)
|
actionview (= 5.2.4.4)
|
||||||
activejob (= 5.2.4.3)
|
activejob (= 5.2.4.4)
|
||||||
activemodel (= 5.2.4.3)
|
activemodel (= 5.2.4.4)
|
||||||
activerecord (= 5.2.4.3)
|
activerecord (= 5.2.4.4)
|
||||||
activestorage (= 5.2.4.3)
|
activestorage (= 5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
bundler (>= 1.3.0)
|
bundler (>= 1.3.0)
|
||||||
railties (= 5.2.4.3)
|
railties (= 5.2.4.4)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-assets-bootstrap (3.3.6)
|
rails-assets-bootstrap (3.3.6)
|
||||||
rails-assets-jquery (>= 1.9.1, < 3)
|
rails-assets-jquery (>= 1.9.1, < 3)
|
||||||
|
|
@ -424,9 +424,9 @@ GEM
|
||||||
rails-i18n (5.1.3)
|
rails-i18n (5.1.3)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
railties (>= 5.0, < 6)
|
railties (>= 5.0, < 6)
|
||||||
railties (5.2.4.3)
|
railties (5.2.4.4)
|
||||||
actionpack (= 5.2.4.3)
|
actionpack (= 5.2.4.4)
|
||||||
activesupport (= 5.2.4.3)
|
activesupport (= 5.2.4.4)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.19.0, < 2.0)
|
thor (>= 0.19.0, < 2.0)
|
||||||
|
|
@ -524,11 +524,10 @@ GEM
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
shoulda-matchers (4.1.2)
|
shoulda-matchers (4.1.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
simplecov (0.16.1)
|
simplecov (0.19.0)
|
||||||
docile (~> 1.1)
|
docile (~> 1.1)
|
||||||
json (>= 1.8, < 3)
|
simplecov-html (~> 0.11)
|
||||||
simplecov-html (~> 0.10.0)
|
simplecov-html (0.12.3)
|
||||||
simplecov-html (0.10.2)
|
|
||||||
sixarm_ruby_unaccent (1.2.0)
|
sixarm_ruby_unaccent (1.2.0)
|
||||||
skylight (3.1.5)
|
skylight (3.1.5)
|
||||||
skylight-core (= 3.1.5)
|
skylight-core (= 3.1.5)
|
||||||
|
|
@ -543,7 +542,7 @@ GEM
|
||||||
sprockets (3.7.2)
|
sprockets (3.7.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
sprockets-rails (3.2.1)
|
sprockets-rails (3.2.2)
|
||||||
actionpack (>= 4.0)
|
actionpack (>= 4.0)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
|
|
@ -575,7 +574,6 @@ GEM
|
||||||
unicode_utils (1.4.0)
|
unicode_utils (1.4.0)
|
||||||
unobtrusive_flash (3.3.1)
|
unobtrusive_flash (3.3.1)
|
||||||
railties
|
railties
|
||||||
url (0.3.2)
|
|
||||||
warden (1.2.8)
|
warden (1.2.8)
|
||||||
rack (>= 2.0.6)
|
rack (>= 2.0.6)
|
||||||
web-console (3.7.0)
|
web-console (3.7.0)
|
||||||
|
|
@ -648,7 +646,7 @@ DEPENDENCIES
|
||||||
iso-639
|
iso-639
|
||||||
jquery-datatables
|
jquery-datatables
|
||||||
jquery-rails
|
jquery-rails
|
||||||
jquery-ui-rails (~> 4.2.1)
|
jquery-ui-rails (~> 6.0.1)
|
||||||
json-schema
|
json-schema
|
||||||
leaflet-rails
|
leaflet-rails
|
||||||
letter_opener
|
letter_opener
|
||||||
|
|
@ -670,7 +668,7 @@ DEPENDENCIES
|
||||||
prawn-qrcode
|
prawn-qrcode
|
||||||
prawn-rails
|
prawn-rails
|
||||||
puma (~> 3.0)
|
puma (~> 3.0)
|
||||||
rails (~> 5.2.4.3)
|
rails (~> 5.2)
|
||||||
rails-assets-bootstrap-markdown!
|
rails-assets-bootstrap-markdown!
|
||||||
rails-assets-bootstrap-select!
|
rails-assets-bootstrap-select!
|
||||||
rails-assets-date.format!
|
rails-assets-date.format!
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
//= require jquery
|
//= require jquery
|
||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require jquery.mobile.custom.min
|
//= require jquery.mobile.custom.min
|
||||||
//= require jquery.ui.draggable
|
//= require jquery-ui/widgets/draggable
|
||||||
//= require jquery.ui.droppable
|
//= require jquery-ui/widgets/droppable
|
||||||
//= require waypoints/jquery.waypoints
|
//= require waypoints/jquery.waypoints
|
||||||
|
|
||||||
//= require datatables/jquery.dataTables
|
//= require datatables/jquery.dataTables
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ module Admin
|
||||||
@booth_export_option = params[:booth_export_option]
|
@booth_export_option = params[:booth_export_option]
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
# Explicity call #to_json to avoid the use of EventSerializer
|
# Explicitly call #to_json to avoid the use of EventSerializer
|
||||||
format.json { render json: Booth.where(state: :confirmed, program: @program).to_json }
|
format.json { render json: Booth.where(state: :confirmed, program: @program).to_json }
|
||||||
format.xlsx do
|
format.xlsx do
|
||||||
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ module Admin
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
# Explicity call #to_json to avoid the use of EventSerializer
|
# Explicitly call #to_json to avoid the use of EventSerializer
|
||||||
format.json { render json: Event.where(state: :confirmed, program: @program).to_json }
|
format.json { render json: Event.where(state: :confirmed, program: @program).to_json }
|
||||||
format.xlsx do
|
format.xlsx do
|
||||||
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ module Admin
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
# Explicity call #to_json to avoid the use of EventSerializer
|
# Explicitly call #to_json to avoid the use of EventSerializer
|
||||||
format.json { render json: Track.where(state: :confirmed, program: @program).to_json }
|
format.json { render json: Track.where(state: :confirmed, program: @program).to_json }
|
||||||
format.xlsx do
|
format.xlsx do
|
||||||
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class ApplicationController < ActionController::Base
|
||||||
Rails.logger.debug('IChain Record was not Unique!')
|
Rails.logger.debug('IChain Record was not Unique!')
|
||||||
sign_out(current_user)
|
sign_out(current_user)
|
||||||
redirect_to root_path,
|
redirect_to root_path,
|
||||||
error: 'Your E-Mail adress is already registered at OSEM. Please contact the admin if you want to attach your openSUSE Account to OSEM!'
|
error: 'Your E-Mail address is already registered at OSEM. Please contact the admin if you want to attach your openSUSE Account to OSEM!'
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue_from UserDisabled do
|
rescue_from UserDisabled do
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ module ApplicationHelper
|
||||||
Comment.accessible_by(current_ability).find_since_last_login(user)
|
Comment.accessible_by(current_ability).find_since_last_login(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Recieves a PaperTrail::Version object
|
# Receives a PaperTrail::Version object
|
||||||
# Outputs the list of attributes that were changed in the version (ignoring changes from one blank value to another)
|
# Outputs the list of attributes that were changed in the version (ignoring changes from one blank value to another)
|
||||||
# Eg: If version.changeset = '{"title"=>[nil, "Premium"], "description"=>[nil, "Premium = Super cool"], "conference_id"=>[nil, 3]}'
|
# Eg: If version.changeset = '{"title"=>[nil, "Premium"], "description"=>[nil, "Premium = Super cool"], "conference_id"=>[nil, 3]}'
|
||||||
# Output will be 'title, description and conference'
|
# Output will be 'title, description and conference'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
namespace :events_registrations do
|
namespace :events_registrations do
|
||||||
desc "Deletes dupicate entries"
|
desc "Deletes duplicate entries"
|
||||||
task deduplicate: :environment do
|
task deduplicate: :environment do
|
||||||
if ActiveRecord::Migrator.get_all_versions.include? 20160403214841
|
if ActiveRecord::Migrator.get_all_versions.include? 20160403214841
|
||||||
duplicates = EventsRegistration.all.map { |er| er.id if er.valid? == false}.compact
|
duplicates = EventsRegistration.all.map { |er| er.id if er.valid? == false}.compact
|
||||||
|
|
|
||||||
|
|
@ -373,7 +373,7 @@ feature 'Version' do
|
||||||
EventsRegistration.create(registration: registration, event: event)
|
EventsRegistration.create(registration: registration, event: event)
|
||||||
EventsRegistration.first.update_attributes(attended: true)
|
EventsRegistration.first.update_attributes(attended: true)
|
||||||
EventsRegistration.last.destroy
|
EventsRegistration.last.destroy
|
||||||
# Here registration is deleted to ensure the event registration related change still displays the asociated user's name
|
# Here registration is deleted to ensure the event registration related change still displays the associated user's name
|
||||||
registration.destroy
|
registration.destroy
|
||||||
|
|
||||||
visit admin_revision_history_path
|
visit admin_revision_history_path
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ describe Conference do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#get_submissions_data' do
|
describe '#get_submissions_data' do
|
||||||
it 'returns emtpy hash if there is no cfp or events' do
|
it 'returns empty hash if there is no cfp or events' do
|
||||||
expect(subject.get_submissions_data).to eq []
|
expect(subject.get_submissions_data).to eq []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,9 +73,11 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara.register_driver :chrome_headless do |app|
|
Capybara.register_driver :chrome_headless do |app|
|
||||||
options = Selenium::WebDriver::Chrome::Options.new(
|
options = ::Selenium::WebDriver::Chrome::Options.new
|
||||||
args: %w(headless disable-gpu window-size=1920x1080 no-sandbox)
|
options.args << '--window-size=1920x1080'
|
||||||
)
|
options.args << '--headless'
|
||||||
|
options.args << '--no-sandbox'
|
||||||
|
options.args << '--disable-gpu'
|
||||||
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue