This may not strictly be an RSpec question, but it is related. I’m troubleshooting a strange problem where I have one example with three tests (all with identical data and setup). The first test behaves differently in a way that I can’t figure out but has to do with my session timing out and/or not being logged in. In order to troubleshoot it, I want to be able to see the Server Log after running tests with Capybara/Selenium/ChromeDriver. I’ve looked at log/test.log but it is not being written to by these tests.
I am currently configuring my selenium driver with the following:
config.before(:each, type: :system, js: true) do
driven_by :selenium_chrome_headless
Can anyone tell me what I should add to get a log file out of headless chrome?