Hi!
I am trying to migrate our test suite to Headless Chrome from PhantomJS. We are on CircleCI 2.0.
My issue is that the tests run extremely slowly (>30 mins) and about 70% of tests fail. When running the same test suite on my local computer, the browser tests pass in 10 mins. When running in CircleCI using Poltergeist, the tests pass in about 5 mins.
Can anyone help me? Here are my settings:
Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w(headless disable-gpu window-size=1024,768) }
)
Capybara::Selenium::Driver.new(app, browser: :chrome, desired_capabilities: capabilities)
end
Capybara.server = :puma
Capybara.default_max_wait_time = 30
Capybara.javascript_driver = :headless_chrome