intermittent test failures: web-forms e2e: firefox visuals

Abierto
#958 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
54/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
playwright, typescript
Área
testing

Línea de trabajo

Start with the failing visual test at e2e/test-cases/visual/all-question-types.test.ts:68 and the linked GitHub Actions run to inspect the Firefox screenshot mismatch for select-map-zoom-out.png. Check the screenshot helper at e2e/screenshot.ts:102 and the map control at e2e/page-objects/controls/MapControl.ts:216. Done means identifying and fixing the intermittent failures so the affected Firefox visual tests pass reliably.

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

Descripción

https://github.com/getodk/central-frontend/actions/runs/43368646506/job/131701057077?pr=1990

Running 21 tests using 1 worker
··××F××F·········×±×±······

  1) [visual-firefox] › e2e/test-cases/visual/all-question-types.test.ts:68:5 › All Question Types (Visual) › Select one from map › zooms in and out, pans the map and zooms to fit all features 

    Error: expect(page).toHaveScreenshot(expected) failed

      30275 pixels (ratio 0.08 of all image pixels) are different.

      Snapshot: select-map-zoom-out.png

    Call log:
      - Expect "toHaveScreenshot(select-map-zoom-out.png)" with timeout 5000ms
        - verifying given screenshot expectation
      - taking page screenshot
        - disabled all CSS animations
      - waiting for fonts to load...
      - fonts loaded
      - 30275 pixels (ratio 0.08 of all image pixels) are different.
      - waiting 100ms before taking screenshot
      - taking page screenshot
        - disabled all CSS animations
      - waiting for fonts to load...
      - fonts loaded
      - captured a stable screenshot
      - 30275 pixels (ratio 0.08 of all image pixels) are different.


       at screenshot.ts:102

      100 |   const box = await getBox(locator, screenshotName);
      101 |
    > 102 |   await expect(page).toHaveScreenshot(screenshotName, {
          |                      ^
      103 |     fullPage: isFullPage,
      104 |     clip: {
      105 |       x: Math.round(box.x + scroll.x),
        at expectScreenshot (/__w/central-frontend/central-frontend/packages/web-forms/e2e/screenshot.ts:102:22)
        at MapControl.expectMapScreenshot (/__w/central-frontend/central-frontend/packages/web-forms/e2e/page-objects/controls/MapControl.ts:216:5)
        at /__w/central-frontend/central-frontend/packages/web-forms/e2e/test-cases/visual/all-question-types.test.ts:70:7

    attachment getodk/central#1: select-map-zoom-out (image/png) ─────────────────────────────────────────────────
    Expected: e2e/test-cases/visual/all-question-types.test.ts-snapshots/select-map-zoom-out-firefox.png
    Received: test-results/test-cases-visual-all-ques-481b5-d-zooms-to-fit-all-features-visual-firefox/select-map-zoom-out-actual.png
    Diff:     test-results/test-cases-visual-all-ques-481b5-d-zooms-to-fit-all-features-visual-firefox/select-map-zoom-out-diff.png
    Error Context: test-results/test-cases-visual-image-la-f28e5-cked-columns-and-no-buttons-visual-firefox/error-context.md

  2 failed
    [visual-firefox] › e2e/test-cases/visual/all-question-types.test.ts:68:5 › All Question Types (Visual) › Select one from map › zooms in and out, pans the map and zooms to fit all features 
    [visual-firefox] › e2e/test-cases/visual/all-question-types.test.ts:82:5 › All Question Types (Visual) › Select one from map › opens details of saved feature and remove saved feature 
  2 flaky
    [visual-firefox] › e2e/test-cases/visual/image-labels.test.ts:53:5 › Image Selects (Visual) › Select with images › select one with fixed column count 
    [visual-firefox] › e2e/test-cases/visual/image-labels.test.ts:66:5 › Image Selects (Visual) › Select with images › select one with packed columns and no buttons 
  17 passed (2.8m)
Error: Process completed with exit code 1.

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.