mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Keep rubocop happy with the new Selenium runner
This commit is contained in:
parent
bf6456e053
commit
f50aeba01e
1 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
|||
require 'qunit/selenium/test_runner'
|
||||
require 'chromedriver/helper'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "qunit/selenium/test_runner"
|
||||
require "chromedriver/helper"
|
||||
|
||||
driver_options = Selenium::WebDriver::Chrome::Options.new
|
||||
driver_options.add_argument('--headless')
|
||||
driver_options.add_argument('--disable-gpu')
|
||||
driver_options.add_argument("--headless")
|
||||
driver_options.add_argument("--disable-gpu")
|
||||
|
||||
driver = ::Selenium::WebDriver.for(:chrome, options: driver_options)
|
||||
result = QUnit::Selenium::TestRunner.new(driver).open(ARGV[0], timeout: 60)
|
||||
|
|
Loading…
Reference in a new issue