Add React Testing Library component tests and expand Playwright regression coverage

Open
#1,998 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript, playwright, react

Research direction

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.

Written by the indexing model from the issue text.

Description

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].
Dominant language
Java
Stars
2.1k
Forks
362
Avg merge
1d 3h
Merged PRs (30d)
44

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-openvsx/openvsx

All issues in eclipse-openvsx/openvsx

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.