-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: django, Infrastructure, Tests
-
None
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
I asked Tim about the options for UI regression testing for Django. From his comment:https://github.com/mongodb/django-mongodb-backend/pull/570#issuecomment-4780434114:
- Django's LiveServerTestCase can be used with Selenium, Playwright, etc.
- AdminSeleniumTestCase is a private API used by the Django test suite.
- There's an ongoing 2026 Summer of Code project to [switch AdminSeleniumTestCase from Selenium to Playwright|(https://summerofcode.withgoogle.com/programs/2026/projects/hVM2skuP].
We may way want to wait for the Summer of Code project to complete and then look into testing with Playwright.
These tests would be helpful to catch Django bug that show up visually or as errors in the browser console, or add regression tests for found failures such as INTPYTHON-643.
Definition of done
Set up UI integration testing to run as part of CI.
Pitfalls
Time box the activity, since UI testing can become quite involved based on my experience with JupyterLab.