I keep getting the above error when running Rails 5.2 system tests on Circle with capybara and chrome headless on Selenium. Do not have these errors when run locally.
Testing code:
accept_alert { click_link 'Delete' }
Rails setup:
Capybara.register_driver :headless_chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('headless')
options.add_argument('window-size=1480x1680')
Capybara::Selenium::Driver.new(app, :browser => :chrome, :options => options)
end
driven_by :headless_chrome
On CI, it doesn’t seem to see the modal for some reason. Any ideas on how to resolve?