Flaky: RichTextEsheetModes Escape-dismissal tests fail intermittently on CI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 77/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- playwright, react, typescript
- Ambito
- testing
Direzione di ricerca
Inizia dai due test di chiusura con Escape in src/components/RichTextEsheet/RichTextEsheetModes.test.tsx, intorno alle righe 446 e 470, poi esamina i test vicini sui layer Escape nello stesso blocco describe. Esegui il file con pnpm test e verifica se le asserzioni successive a Escape entrano in competizione con lo smontaggio dell’overlay. Il lavoro è completato quando le asserzioni di chiusura attendono lo smontaggio e i test passano in modo affidabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
Two tests in src/components/RichTextEsheet/RichTextEsheetModes.test.tsx failed the Unit Tests job on an unrelated PR (#700, SuperChat attachment plumbing that never touches RichTextEsheet, Modal, or Escape handling), then passed on a plain re-run of the same commit.
Failed run: https://github.com/mieweb/ui/actions/runs/44657857336/job/136028422423
RichTextEsheet mode synchronization > closes the resolver with Escape inside an enclosing host dialog(line ~446)RichTextEsheet mode synchronization > dismisses one overlay layer per Escape inside a library Modal host(line ~470)
Both failed the same way: expect(element).not.toBeInTheDocument() found the resolver dialog still mounted after Escape, meaning the dismissal had not completed when the assertion ran.
Evidence it is a flake, not the PR
- The exact merged tree CI tested (main + #700) was rebuilt locally:
pnpm test(2,778 tests),pnpm test:coverage, and three isolated runs of this file all passed. - The CI re-run of the same head went green with no code change.
- The tests arrived on main via #762 and #775; #700 does not touch any file they exercise.
Impact
Until stabilized, these tests will randomly fail the Unit Tests job on unrelated PRs and erode trust in red CI.
Suspected cause and suggested fix
The assertions race the overlay teardown on slower CI runners. Likely fixes: wrap the post-Escape assertions in waitFor/waitForElementToBeRemoved instead of asserting synchronously after the keyboard event, or flush the relevant timers/transitions before asserting. Worth auditing the neighboring Escape-layer tests in the same describe block for the same pattern while in there.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 7
- Merge medio
- 1g 12h
- PR unite (30g)
- 62
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mieweb/ui
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
src/tailwind-preset.cjs drifted from tailwind-preset.ts — missing `info` and `chart` color scalesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
SuperChatInbox: show the chat pane when the host opens or starts a conversation on small screensForse già presa @martincarapia l’ha presa oggi. Apertaenhancement
mieweb/ui#849 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
I maintainer di solito rispondono entro 1 giorno
-
Mobile compliance: Safari Storybook testing and a Capacitor reference appForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
simstudioai/sim#10710 ·
I maintainer di solito rispondono entro 1 giorno
-
bug:new
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
callstackincubator/simlock#2088 ·
I maintainer di solito rispondono entro 1 giorno
-
Make the HTTP server's keep-alive and headers timeouts configurableForse già presa @mattgodbolt l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
compiler-explorer/compiler-explorer#9902 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno