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

Aperta
#1,907 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
playwright, typescript
Ambito
frontend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
119
Fork
19
Merge medio
1g 18h
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DouglasNeuroInformatics/OpenDataCapture

Tutte le issue di DouglasNeuroInformatics/OpenDataCapture

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.