openwisp / openwisp/openwisp-controller

[bug] Selenium tests contain JS errors due to failed websocket connection

Open
#904 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
773
Forks
315
Avg merge
2d 16h
Merged PRs (30d)
14

Description

Selenium tests contain JS errors due to failed websocket connection.

We need to switch from django's StaticLiveServerTestCase to ChannelsLiveServerTestCase.
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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the shared Selenium base class in openwisp-utils and the OpenWISP Selenium tests that use StaticLiveServerTestCase; start by tracing their test setup and debugging-port initialization. Done means the tests use ChannelsLiveServerTestCase consistently, assign the debugging port reliably, and use BiDi sessions where required.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
testing-qa
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.