Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Test Cases for Archive Feature in the Desktop Application #162

Closed
10 of 20 tasks
BaloneyBoy97 opened this issue Oct 7, 2024 · 0 comments · Fixed by #163
Closed
10 of 20 tasks

Create Test Cases for Archive Feature in the Desktop Application #162

BaloneyBoy97 opened this issue Oct 7, 2024 · 0 comments · Fixed by #163
Assignees
Labels
enhancement New feature or request technical

Comments

@BaloneyBoy97
Copy link
Collaborator

BaloneyBoy97 commented Oct 7, 2024

Original Issue #139

Description
As a developer,
I need to create comprehensive test cases for the newly implemented archive feature,
So that I can ensure its reliability, functionality, and compatibility with other parts of the application.

Tasks

  • Write unit tests to verify that the archive function removes notes from the frontend.
    • Test for successful archive of a note.
    • Test that the confirmation prompt appears before archive.
    • Test that the frontend properly reflects the archive (e.g., note disappears).
  • Write unit tests to verify that the archive function works correctly in the backend.
    • Test that the media file is archived from the database.
    • Test that associated annotations are also archived.
  • Write integration tests to ensure proper interaction between the frontend and backend during archive.
    • Test the complete flow from triggering the archive button to removing the note and annotations.
    • Test that the UI remains consistent after a note is archived.
  • Ensure that tests are regression-free.
  • Committed tests should not interfere with other tests or features.

Acceptance Criteria

  • At least one unit test and one integration test are created for the archive feature.
    • Unit test verifies proper archive behavior in both frontend and backend.
    • Integration test covers the end-to-end archive process.
  • Code is well-commented.
  • Commit only the changes that you’ve made.
  • All tests pass before merging.
  • Tests should run without any errors or timeouts.
  • Tests ensure that no residual data remains in the frontend or backend after archive.

This issue ensures the robustness and stability of the delete feature by covering various testing scenarios.

This issue complete last item on the MVP of the project.

@BaloneyBoy97 BaloneyBoy97 added enhancement New feature or request technical labels Oct 7, 2024
@amychen108 amychen108 self-assigned this Oct 7, 2024
@BaloneyBoy97 BaloneyBoy97 changed the title Create Test Cases for Delete Feature in the Desktop Application Create Test Cases for Archive Feature in the Desktop Application Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request technical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants