Skip to content

Issue: Add Unit Tests for LoginWindow Component #162

@NahomAlemu

Description

@NahomAlemu

Description

The LoginWindow.tsx handles user authentication including JWT parsing, credential validation, and role-based routing. No test coverage exists. Critical for security.

Tasks

Tasks:

  • Test form state management (email/password)
  • Test JWT token parsing from response
  • Test role-based navigation (admin/creator/user)
  • Test error handling for invalid credentials
  • Test localStorage token persistence

Visual Aids

Metadata

Metadata

Assignees

Labels

unit-testSmall-scope logic validation

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions