A specific test in my Rails app is failing on CircleCI.
This test expects an input to exist. The input/ form is rendered by React.
Screenshots from the failing test look like the React component is simply not rendering, perhaps a JS error. But I'm having difficulty identifying the cause.
In my local dev environment the form renders correctly.
In my local test environment the test passes.
If I make a remote browser connection to the CI build, the form renders correctly.
I've tried to inspect the CI headless chrome browser console logs, but recent Chrome updates seem to cause this error:
page.driver.browser.manage.logs.get(:browser)
Selenium::WebDriver::Error::WebDriverError:
unexpected response, code=404, content-type="text/plain"
unknown command: session/1595d6324fa6ae6bdc1ed885ba8c9ebf/se/log
Does anyone have a good idea how I can investigate this issue further? Is there an easier way to get hold of the browser console logs from this specific test?