Sha256: fc0d21ff4b296b418f00baeb54943595811423583a9a46cbf37d491bb60bef1d

Contents?: true

Size: 1.16 KB

Versions: 20

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

require 'capybara'
require 'capybara/rspec'
require 'capybara/cuprite'
require 'rspec/retry'

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path('../../sandbox/config/environment', __dir__)

require 'capybara/rails'

Capybara.app = Rails.application

Capybara.register_driver(:cuprite) do |app|
  driver = Capybara::Cuprite::Driver.new(
    app,
    window_size: [1200, 800],
    headless: ENV['HEADLESS'] == 'true',
    browser_options: {
      'no-sandbox': nil,
      'disable-gpu': nil,
      'enable-logging': nil
    },
    process_timeout: 20,
    timeout: 20,
    inspector: true
  )

  process = driver.browser.process
  puts ''
  puts "Browser: #{process.browser_version}"
  puts "Protocol: #{process.protocol_version}"
  puts "V8: #{process.v8_version}"
  puts "Webkit: #{process.webkit_version}"
  driver
end

Capybara.server = :webrick
Capybara.default_driver = :cuprite
Capybara.javascript_driver = :cuprite

RSpec.configure do |config|
  config.around :each, :js do |example|
    example.run_with_retry retry: 4, retry_wait: 5, default_sleep_interval: 2
  end
end

Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/ckeditor5-1.24.9/spec/e2e/spec_helper.rb
ckeditor5-1.24.9 spec/e2e/spec_helper.rb
ckeditor5-1.24.8 spec/e2e/spec_helper.rb
ckeditor5-1.24.6 spec/e2e/spec_helper.rb
ckeditor5-1.24.5 spec/e2e/spec_helper.rb
ckeditor5-1.24.4 spec/e2e/spec_helper.rb
ckeditor5-1.24.3 spec/e2e/spec_helper.rb
ckeditor5-1.24.2 spec/e2e/spec_helper.rb
ckeditor5-1.24.1 spec/e2e/spec_helper.rb
ckeditor5-1.24.0 spec/e2e/spec_helper.rb
ckeditor5-1.23.5 spec/e2e/spec_helper.rb
ckeditor5-1.23.4 spec/e2e/spec_helper.rb
ckeditor5-1.23.3 spec/e2e/spec_helper.rb
ckeditor5-1.23.2 spec/e2e/spec_helper.rb
ckeditor5-1.23.1 spec/e2e/spec_helper.rb
ckeditor5-1.23.0 spec/e2e/spec_helper.rb
ckeditor5-1.22.0 spec/e2e/spec_helper.rb
ckeditor5-1.21.0 spec/e2e/spec_helper.rb
ckeditor5-1.20.1 spec/e2e/spec_helper.rb
ckeditor5-1.20.0 spec/e2e/spec_helper.rb