Skip to content

test(Tasks): cover add task submission flow - #478

Open
RohitSutar1823 wants to merge 1 commit into
CCExtractor:mainfrom
RohitSutar1823:test/433-add-task-submission
Open

RohitSutar1823 wants to merge 1 commit into
CCExtractor:mainfrom
RohitSutar1823:test/433-add-task-submission

Conversation

@RohitSutar1823

Copy link
Copy Markdown
Contributor

Description

Adds integration coverage for the remaining Add Task Submission item in #433. The tests verify that the Tasks component forwards form data to the backend, resets and closes the dialog after successful submission, and preserves the draft when the backend rejects the request.

Checklist

  • Ran npx prettier --write . (via the pre-commit hook)
  • Ran gofmt -w . (not applicable; frontend-only change)
  • Ran the focused Tasks test suite
  • Added unit tests
  • Verified all tests pass
  • Updated documentation (not needed)

Additional Notes

Focused validation: npm test -- --runInBand src/components/HomeComponents/Tasks/__tests__/Tasks.test.tsx — 103 tests passed. The frontend build also passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

@RohitSutar1823

Copy link
Copy Markdown
Contributor Author

Self-review completed.

These tests cover the Add Task submission flow:

  • Verifies the complete form payload sent to the backend.
  • Verifies the dialog closes and form state resets after success.
  • Verifies the dialog remains open and preserves the draft after failure.

No production code was changed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant