Skip to content

Commit

Permalink
Update application_system_test_case.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Mar 31, 2019
1 parent ad57126 commit e8cfcd4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/application_system_test_case.rb
@@ -1,8 +1,7 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"args" => %w(--headless --disable-gpu --no-sandbox --remote-debugging-port=9222)})
driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps } #, binary: "/usr/bin/chromedriver" }
# argument = { arg: ["headless", "disable-gpu", "no-sandbox", "disable-dev-shm-usage"] }
# Selenium::WebDriver::Chrome::Options.new.add_argument(argument)
chromeOptions = %w(--headless --disable-gpu --no-sandbox --remote-debugging-port=9222)
caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"args" => chromeOptions})
driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps }
end

0 comments on commit e8cfcd4

Please sign in to comment.