Skip to content

E2e tests for the todo list #264

@gabor-boros

Description

@gabor-boros

Description

Currently, E2E test coverage is minimal and only includes basic login functionality. We need to expand the test suite to cover the TODO list feature, which is the only interactive functionality worth testing at this stage. Implement end-to-end tests using Playwright that cover the following scenarios:

1. Opening and Closing the TODO List

  • Open the TODO list via UI (e.g. clicking a button).
  • Close the TODO list via UI.
  • Open/close the TODO list using keyboard shortcuts:
    • Command palette (Cmd/Ctrl + K, then select "Toggle TODO list").
    • Keyboard shortcut: Shift + T + L.

2. Creating TODO Items

  • Add a new TODO item by clicking the "New TODO" button in the sidebar.
  • Add a new TODO item using keyboard:
    • Command palette (Cmd/Ctrl + K, then select "New TODO").
    • Keyboard shortcut: Shift + T + N.

3. Creating Items with Various Fields

Ensure creation works correctly for different input combinations:

  • Title only
  • Title + Description
  • Title + Priority
  • Title + Description + Priority
  • Other relevant field permutations

4. Updating TODO Items

  • Update the title
  • Update the description
  • Change priority
  • Update various combinations of fields

5. Completing / Uncompleting Items

  • Mark a TODO item as complete
  • Mark a completed item as incomplete

6. Deleting Items

  • Delete a TODO item and verify it no longer appears in the list

Screenshots

![DESCRIPTION](LINK.png)

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions