Restore Tab/Shift+Tab focus-exit test coverage
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- playwright, typescript
- Ambito
- accessibility, testing
Direzione di ricerca
Start with elements/pf-v5-accordion/test/pf-accordion.spec.ts and elements/pf-v5-search-input/test/pf-search-input.spec.ts, reviewing the existing keyboard-navigation tests and the four removed or weakened assertions. Run the relevant test files, then restore coverage for focus leaving each component through Tab or Shift+Tab using one of the listed approaches. Done means all four focus-exit cases are asserted again.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
PR #3121 migrated unit tests from Playwright to Puppeteer. Puppeteer cannot move focus outside the browser viewport via Tab/Shift+Tab, so four assertions that verified focus leaving a component were removed or weakened.
Removed/weakened assertions
- Accordion: Shift+Tab from first header exits accordion - removed entirely (no prior focusable element to land on)
- Accordion: Shift+Tab from last header exits accordion - removed entirely
- Accordion: Tab out then Shift+Tab back returns to panel link - removed the Shift+Tab return portion
- Search-input: Tab from expanded listbox defocuses combobox - changed from asserting nothing is focused to asserting listbox is closed
What to restore
All four cases test that focus leaves the component entirely via Tab/Shift+Tab. Options:
- Add Playwright e2e tests (
*.e2e.ts) for these keyboard navigation flows, since e2e tests still run on Playwright - Investigate whether Puppeteer's
page.bringToFront()or CDPInput.dispatchKeyEventwith proper target can simulate Tab-out behavior - Use a sentinel focusable element before/after the component in the test fixture to catch focus without needing to leave the page
Files affected
elements/pf-v5-accordion/test/pf-accordion.spec.tselements/pf-v5-search-input/test/pf-search-input.spec.ts
- Lingua principale
- TypeScript
- Stelle
- 394
- Fork
- 107
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 patternfly/patternfly-elements
-
bug
patternfly/patternfly-elements#3158 · 1 assegnatario ·
-
patternfly/patternfly-elements#3136 · 1 commento · 1 assegnatario ·
-
docs
patternfly/patternfly-elements#3131 · 1 assegnatario ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
patternfly/patternfly-elements#3118 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
patternfly/patternfly-elements#3110 ·
Tutte le issue di patternfly/patternfly-elements
Issue simili
-
blocklist removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pastelsky/bundlephobia#1122 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100