Add React Testing Library component tests and expand Playwright regression coverage

Đang mở
#1,998 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, playwright, react

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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].
Ngôn ngữ chính
Java
Star
2.1k
Fork
362
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
44

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-openvsx/openvsx

Tất cả issue của eclipse-openvsx/openvsx

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.