[bug] Browser tests fail on Django admin unload deprecation warning

Aperta
#778 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cypress, django, docker, github-actions, python
Ambito
devops, testing

Direzione di ricerca

Read the Docker CI workflow and the console checks used by test_console_errors and test_topology_graph; reproduce with the Ubuntu runner and Chrome versions described in the issue. The issue says a fix branch already passes all 62 tests, so inspect that branch to understand the narrow exception and its regression tests. Done means the Django admin unload warning is tolerated while other policy violations and JavaScript errors still fail the suite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

The Docker CI browser tests fail on Django admin’s legacy unload handler:

https://dashboard.openwisp.org/static/admin/js/admin/RelatedObjectLookups.js 214 Permissions policy violation: unload is not allowed in this document.

Failing run: test_console_errors and test_topology_graph report 27 failures on each of five attempts. All installer tests pass.

Steps To Reproduce

  1. Run the Docker CI workflow on the current Ubuntu runner with Chrome 158.
  2. The workflow starts the development stack and runs make develop-pythontests.
  3. The console checks report the warning above as a JavaScript error.

Expected behavior

The known Django admin unload-deprecation warning should not fail the suite. Other policy violations and JavaScript errors must still be reported. A narrowly scoped exception with regression tests would keep this compatibility fix separate from installer PR #777.

System information

Ubuntu 26.04 GitHub runner image 20261122.9.1, Chrome 158.0.8127.36. The earlier successful run used Chrome 157. Full environment details and output are linked above.

The fix is available on this branch. CI with the fix passed all 62 tests on the first attempt, including both previously failing browser tests. A separate draft PR is currently blocked by the repository’s one-open-PR limit; #777 occupies that slot.

Lingua principale
Python
Stelle
207
Fork
130
Merge medio
14h 16m
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwisp/docker-openwisp

Tutte le issue di openwisp/docker-openwisp

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.