Renderer tests for keyboard shortcuts and dialogs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 76/100
调研方向
Start with vitest.config.mts and the existing renderer tests under tests/renderer/**, then review mockApi.ts to see how window.vmm is provided. Add a DOM test environment and React Testing Library, following the setup patterns already used by the project. Done means renderer tests cover arrow-key focus boundaries, shortcuts being disabled for open dialogs, Delete being ignored while typing or running a VM, and Modal Esc invoking the current onClose.
由索引模型根据 Issue 内容生成。
描述
The unit tests run in node without a DOM, so none of the renderer's key handling has tests. #89 only tests filterVms. Things that broke or nearly broke in review and would be worth pinning down:
- arrows only move through the library with focus inside it (#89 review)
- shortcuts are ignored while a dialog is open
- Delete is ignored while typing and while the VM runs
- Modal's Esc uses the current
onClose
A jsdom (or happy-dom) project in vitest.config.mts for tests/renderer/** plus React Testing Library, with the browser mock from mockApi.ts as window.vmm, should be enough.
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 0
- 平均合并
- 2 分钟
- 30 天内合并 PR
- 59
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
A21-devs/Virtual-Machine-Manager 的其他 Issue
-
enhancement ui
难度 2/5 1-3 小时 新手友好度 75/100
A21-devs/Virtual-Machine-Manager#128 ·
维护者通常 1 天内回复
-
bug ui
难度 2/5 1-3 小时 新手友好度 77/100
A21-devs/Virtual-Machine-Manager#127 ·
维护者通常 1 天内回复
-
ui
难度 2/5 1-3 小时 新手友好度 88/100
A21-devs/Virtual-Machine-Manager#126 ·
维护者通常 1 天内回复
-
documentation tests
难度 2/5 1-3 小时 新手友好度 77/100
A21-devs/Virtual-Machine-Manager#106 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
A21-devs/Virtual-Machine-Manager#105 ·
维护者通常 1 天内回复
查看 A21-devs/Virtual-Machine-Manager 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
难度 2/5 1-3 小时 新手友好度 78/100
can1357/oh-my-pi#21349 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 72/100
ohcnetwork/care_fe#17474 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 90/100