Use LiveServerTestCase
for frontend tests
#1854
Labels
Attempt
This might turn out to be not (easily) implementable. In this case we'll probably close the issue.
[C] Tests and CI
New or better testing and CI
[P] Minor
Minor priority
[T] Refactoring
Existing parts should become faster, more readable, or in any other way better.
With our current setup for frontend tests, we generate static html files that are then opened with selenium by a nodejs script. This comes with the disadvantage, that we cannot (in all cases) test the behavior when submitting forms, which is something we want to do more often. There is https://docs.djangoproject.com/en/4.1/topics/testing/tools/#liveservertestcase which could be used as a driver for the frontend tests. Even further, it turns out the linked documentation even provides an example of a selenium driven test, so we should investigate porting our frontend tests to Python.
The text was updated successfully, but these errors were encountered: