Hi all,
I’m going slightly crazy over this:
I have functional tests using selenium (in Python) and they always pass on my local machine, both in visible and in headless mode.
And most of them also work fine on the CI tests (Using github actions, albeit with the chromium webdriver instead of my local Chrome).
Now there’s one particular test case that sometimes passes and sometimes doesn’t, and it involves a file upload form. Uploading a file and clicking Submit should then cause that file to be processed and certain items added to the page.
From all I can tell, the submit button never gets clicked when the failing testcase happens, even though I use explicit waits until it’s clickable.
To debug that, I’d love to see whether the django testserver ever registered a post request to the relevant URL, but the testserver is “silent”.
Is there a good way to re-enable this sort of request logging in the test server, preferably within the pytest-django framework?