Getting rspec/capybara browser console output for failed tests – Bibliographic Wilderness
10-Oct-2024 158
I am writing some code that does some smoke tests with capybara in a browser of some Javascript code. Frustratingly, it was failing when run in CI on Github Actions, in ways that I could not reproduce locally. (Of course it ended up being a configuration problem on CI, which you’d expect in this case). But this fact especially made me really want to see browser console output — especially errors, for failed tests, so I could get a hint of what was going wrong beyond “Well, the JS code didn’t load”.
.
Getting rspec/capybara browser console output for failed tests – Bibliographic Wilderness #ruby #rubydeveloper #rubyonrails #Getting #rspec/capybara #browser #console #output #failed #tests #Bibliographic #Wilderness #rspec/capybara #tests https://rubyonrails.ba/link/getting-rspec-capybara-browser-console-output-for-failed-tests-bibliographic-wilderness