Visual e2e tests wait on map animations
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
- Área
- frontend, testing-qa
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
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getodk/web-forms
-
iOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 3/5 Medio día Aptitud para principiantes 54/100
-
Offline send queueAbiertoIn Enketo
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Launch form offlineAbiertoneeds discussion
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Todos los issues de getodk/web-forms
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
twilio/twilio-node#1241 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
hugomrdias/playwright-test#786 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:stdlib effort:S impact:med platform:linux type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
WenyuChiou/agent-board#1745 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día