Visual e2e tests wait on map animations

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start with the animation timers in useMapViewControls.ts and the MapControl component that the visual e2e tests wait on. Find where the animation duration is set, and check how the visual tests currently wait for the map before each screenshot. Done means the map accepts a zero duration under tests, the visual suite runs without the fixed wait, and the screenshots still pass.

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

Descripción

enhancement
Description

The visual e2e tests spend a fixed amount of time waiting for the map to finish animating before each screenshot. The animations are OpenLayers JS timers in useMapViewControls.ts, so Playwright's animations: 'disabled' has no effect and the tests can't shorten them from the outside.

Each visual run is about 70s per browser, and roughly 10s of that is these waits.

Possible approach:

  • Let the map component accept a zero animation duration when running under tests (for example via a prop or a test-only flag), so MapControl can wait only for the map to render.

Ref: https://github.com/getodk/central-frontend/pull/1947#issuecomment-6198229387

Lenguaje dominante
TypeScript
Estrellas
38
Forks
24
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 getodk/web-forms

Todos los issues de getodk/web-forms

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.