Sha256: 93d7fc804a78a294432d1f3ccfc3f68074f3037242667b84bf46b567ec78c797
Contents?: true
Size: 1008 Bytes
Versions: 3
Compression:
Stored size: 1008 Bytes
Contents
# frozen_string_literal: true require 'capybara' require 'capybara/rspec' require 'capybara/cuprite' 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 Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ckeditor5-1.16.2 | spec/e2e/spec_helper.rb |
ckeditor5-1.16.1 | spec/e2e/spec_helper.rb |
ckeditor5-1.16.0 | spec/e2e/spec_helper.rb |