-
-
Notifications
You must be signed in to change notification settings - Fork 217
[bug] Selenium tests contain JS errors due to failed websocket connection #904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have updated the selenium test in utils to inherit from This open issue in the channels repo as 5.2 is added recently.
So, how should we proceed then? |
Yes
Can you please explain why? |
When running tests using However, when running tests with This causes a problem:
Solutions:
Let me know if there are any other solutions! |
@dee077 can you open a draft PR in openwisp-utils? I would like to do some debugging before finalizing on a solution. |
Selenium tests contain JS errors due to failed websocket connection.
We need to switch from django's
StaticLiveServerTestCase
toChannelsLiveServerTestCase
.I also recommend making the base selenium class in openwisp-utils automatically inherit
ChannelsLiveServerTestCase
and enforce this across OpenWISP.We also have to figure out:
The text was updated successfully, but these errors were encountered: