Add React Testing Library component tests and expand Playwright regression coverage

Aperta
#1,998 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, playwright, react

Direzione di ricerca

Start from existing vitest coverage in utils.spec.ts and the Playwright smoke tests, then map custom hooks such as useExtensionDetail, ExtensionRegistryService, and page-level conditional rendering. Add RTL/jsdom tests for project-owned logic (not MUI) and fill the most regression-prone UI flows. Extract testing and feature-implementation guidance from webui/AGENTS.md into skill files, including when to test and updating CHANGELOG.md under ## [next]. Done means new tests run in CI and the skill files are referenced instead of the inline blob.

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

Descrizione

enhancement testing webui

Now that we've migrated to vitest (#1914), the groundwork is there but coverage is still limited to pure utility functions in utils.spec.ts. A contributor can refactor a hook, change business logic in a page component, or break how data flows through the registry service — and CI won't catch it.

Component/hook testing: vitest already supports jsdom, and with React Testing Library we could start covering the logic that's actually ours to own — custom hooks like useExtensionDetail, service layer behaviour in ExtensionRegistryService, and data-driven conditional rendering in page components. The goal wouldn't be testing MUI itself, but the decisions our code makes.

Playwright coverage: the existing smoke tests cover some critical paths, but there are likely flows that have broken in the past and gone undetected until someone noticed manually. It'd be worth identifying which areas feel most regression-prone and whether there are gaps worth filling.


Separately, webui/AGENTS.md currently embeds all agent guidance inline. As that grows it would be worth extracting the testing and feature implementation knowledge into dedicated skill files that agents can reference:

  • A testing skill — when to write tests and when not to (e.g. don't test MUI rendering, do test custom hooks and service logic), what tools to use, and how to structure test files.
  • A feature implementation skill — the general workflow for shipping a feature: when to add tests (referencing the testing skill), and the requirement to update CHANGELOG.md under ## [next].
Lingua principale
Java
Stelle
2.1k
Fork
362
Merge medio
1g 3h
PR unite (30g)
44

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 eclipse-openvsx/openvsx

Tutte le issue di eclipse-openvsx/openvsx

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.