Add frontend test suites/cases for src/components/HomeComponents/Tasks
some frontend components currently have less than 100% or fairly low test coverage, as visible in the coverage report (see screenshot below). this issue tracks the work required to identify and improve coverage for those components.
notes
- focus should be on meaningful tests rather than coverage-only tests
- avoid snapshot-only tests unless justified
- no functional changes are expected as part of this issue
- if interested, feel free to mention the file you are working on as a comment, and submit a PR
- please create a separate PR for each file
tracker for this folder
- [x] AddTaskDialog
- [ ] TaskDialog
- [ ] Tasks
- [x] Hooks
Hi @its-me-abhishek!, I would like to work on AddTaskDialog and will open a PR shortly.
I’ve completed the AddTaskDialog tests (#305). I’d like to take up Tasks next and will open a PR soon.
"Hi @its-me-abhishek , I'm a beginner looking to make my first contribution. I noticed this issue was reopened—is the work for the Tasks component test suite still available? If so, I'd love to work on it!"
sure @AaineeSinha tests for both TaskDialog and Task.tsx are pending, feel free to work on these.
@its-me-abhishek should I work on the test for the TaskDialog ???
hey! @its-me-abhishek, I’m working on adding tests for Tasks.tsx and will open a PR for it shortly
sure
Hey @its-me-abhishek, I’ve opened PR #395 addressing this issue. Would appreciate your review whenever you get a chance. Thanks!
hey! @its-me-abhishek, I’m working on adding tests for TaskDialog.tsx and will open a PR for it shortly
Hi maintainers, I understand the issue and can work on a fix. Please assign this issue to me
@Sayan-01 feel free to add test suites for TaskDialog since those are yet to be added
Added tests for multi-select-utils.ts (PR #466)
Hi maintainers, I’d like to contribute here.
I can take one uncovered file under src/components/HomeComponents/Tasks and submit a focused test PR, following the “one file per PR” guideline.
Please let me know which specific file is currently unclaimed so I can avoid overlap and start immediately.
Hi @its-me-abhishek ,I'd like to take TaskDialog for this. I checked #397 and #395 — existing tests cover row/dialog, description, priority, tags, project, depends, due date, complete/delete, UUID, pin, and shortcuts, so I'll focus on the remaining gaps (wait/start/entry/end fields, annotations, recur) rather than duplicating what's already there.
Hi, I'd like to take this issue for the remaining Tasks tests (Task.tsx and TaskDialog.tsx) that the maintainer noted are still pending, one file per PR. Could you assign it to me?
sure, feel free to write tests and submit a patch for anything that you may think requires coverage