This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the testing category.
Last Updated: 2024-11-21
I had strange integration test failures wherein the logs only showed database queries but not browser requests.
It turned out that the headless browser was never even reaching the server. This
was because it was using _url
rather than _path
, the first being a full URL
(e.g. with domain such as localhost:10000/about
) and the other just the relative path /about
This took me longer than it should have to debug. My first thought should have been "OK the server is not hit. I guess it has the wrong URL or port."