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

Abierto
#778 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cypress, django, docker, github-actions, python
Área
devops, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
207
Forks
130
Merge medio
14 h 16 min
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openwisp/docker-openwisp

Todos los issues de openwisp/docker-openwisp

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.