Add accessibility coverage for PackageSizeIncreaseAnalysis
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Add automated Vitest accessibility coverage for PackageSizeIncreaseAnalysis and remove its temporary exclusion from the component-coverage guard.
The component currently depends on the worker-backed useAnalyzeCauseWorker composable, so the test must isolate the UI from real Web Worker and IndexedDB behaviour.
Required changes
- Add an accessibility/component test for
app/components/Package/SizeIncreaseAnalysis.vue. - Mock
useAnalyzeCauseWorker(and the worker boundary if the established test setup requires it) with reactive, type-safe state and no-op actions. - Cover the initial available state and assert that axe reports no accessibility violations.
- Remove the
Package/SizeIncreaseAnalysis.vueTODO/entry fromSKIPPED_COMPONENTSintest/unit/a11y-component-coverage.spec.ts.
Rationale
The current skip leaves the new package-size analysis UI outside the repository’s required component accessibility coverage. A deterministic mock prevents browser-worker and IndexedDB dependencies from making the test brittle.
Affected areas
app/components/Package/SizeIncreaseAnalysis.vueapp/composables/pkg-size/useAnalyzeCauseWorker.tstest/nuxt/a11y.spec.ts(or the established component-test location)test/unit/a11y-component-coverage.spec.ts
Acceptance criteria
- A Vitest test mounts
PackageSizeIncreaseAnalysiswith a mocked analysis composable. - The test performs an axe accessibility assertion without starting a real worker.
- The temporary coverage skip and its TODO are removed.
- The relevant test suite passes.
Requested by @userquin.
Backlinks: https://github.com/npmx-dev/npmx.dev/pull/3077 and https://github.com/npmx-dev/npmx.dev/pull/3077#discussion_r3649237902
- Ngôn ngữ chính
- TypeScript
- Star
- 3.6k
- Fork
- 533
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của npmx-dev/npmx.dev
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y front
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
npmx-dev/npmx.dev#2914 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front i18n
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
npmx-dev/npmx.dev#2831 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
back stale stale-to-close
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
npmx-dev/npmx.dev#2511 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front needs discussion ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
npmx-dev/npmx.dev#2275 · 5 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của npmx-dev/npmx.dev
Issue tương tự
-
[Bug]: Circular app layout navigation and help icons are shifted upward in the official demoĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cloudscape-design/components#5184 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
JarX-Concepts/react-native-platform-components#130 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(api): optimize-for-web /preview outer catches miss asDecoderOutOfMemory on V8 OOM and SIGKILLĐang mởarea: backend bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
snapotter-hq/SnapOtter#3773 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa ux-audit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linagora/twake-contacts-frontend#386 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
git: README should state plainly that without --repository every reachable repository is in scopeĐang mởdocumentation server-git v2
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
modelcontextprotocol/servers#5225 ·
Maintainer thường phản hồi trong vòng 1 ngày