datahub.spec.ts row action menu test times out intermittently while it waits for the start-session form

Abierto
#1,907 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
56/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
playwright, typescript
Área
frontend, testing

Línea de trabajo

Read src/specs/datahub.spec.ts around line 118 and inspect how the test navigates to /session/start-session and waits for start-session-form. First capture trace or failure context on a reproduced timeout, then compare with the other specs that open the same page. Done when the intermittent failure is understood and the test reliably passes in repeated runs.

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

Descripción

Area: Infrastructure Bug Needs Info Priority: Low

In one of four local full runs of pnpm test:e2e, this test failed with a timeout. It passed in the other three full runs, and the complete datahub.spec.ts file then passed with --repeat-each 4 on the same tree.

Output

[chromium] › src/specs/datahub.spec.ts:118:3 › data hub › should open a subject from the list via the row action menu, landing on its record table

Test timeout of 30000ms exceeded.
Error: locator.waitFor: Test timeout of 30000ms exceeded.
  - waiting for getByTestId('start-session-form') to be visible

  123 |     const startSessionPage = await getPageModel('/session/start-session');
> 124 |     await startSessionPage.sessionForm.waitFor({ state: 'visible' });

The test did not get past its first step: the start-session form did not become visible in 30 seconds after navigation to /session/start-session.

Environment

  • Local run with 2 workers (not CI), chromium project
  • Linux 7.3.3-1-cachyos, Node v26.13.0, Playwright from the lockfile on the branch of #1904 (libui 6.20.0)

What is not known

  • I do not have the trace or the error context of the failed run; a later run replaced them.
  • I do not know if the page was slow to load or if the session or first-run state was not ready. Other specs open the same page with the same call and did not fail.

Found while preparing #1904.

Lenguaje dominante
TypeScript
Estrellas
119
Forks
19
Merge medio
1 d 18 h
PR fusionados (30 d)
60

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 DouglasNeuroInformatics/OpenDataCapture

Todos los issues de DouglasNeuroInformatics/OpenDataCapture

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.