Automate the screenshot generation process for docs - #35830

Hey @khanxmetu, thanks for the tips!

The problem is when running the tests, both chrome and FF use theme: auto by default, which results in dark mode because of my OS.

Tried with django-docker-box. Got some memory issues at first, then I was able to run it but then I saw it doesn’t support screenshot generation (yet!).

In the end I was able to fix it by forcing light mode as you suggested.

Model admins:

I think I get your point but I don’t know how to make what you suggest. Should I override the default admin?

Anyway, I read AdminSite.get_app_list() doesn't seem to respect TransactionTestCase.available_apps and maybe it could be a PR on it’s own because of some other changes on the test suite.

Misplaced <select> dropdown

I think it can be interesting to try it, since there’s no other alternative (I believe).
Although I wouldn’t consider it a must, but rather an improvement.
Just in case, 2/20 images from the admin docs show this problem.