Description
Current State
There's only 1 E2E test file (e2e/project-page-permissions.spec.ts) covering permission-based access. Critical user flows are untested:
- Project creation and editing
- Task management (Kanban drag-drop)
- Workflow execution (multi-step approval flows)
- Time tracking (clock in/out, logging entries)
- User role assignment
- Analytics page loading
The existing test structure is good — we just need more coverage.
Desired Outcome
Expand to cover:
e2e/
auth/
login.spec.ts
signup.spec.ts
projects/
project-crud.spec.ts
project-assignments.spec.ts
tasks/
task-kanban.spec.ts
task-gantt.spec.ts
workflows/
workflow-creation.spec.ts
workflow-execution.spec.ts
time-tracking/
clock-session.spec.ts
time-entry-crud.spec.ts
Priority tests
- Login/logout flow
- Project CRUD with permission checks
- Workflow execution (start → complete)
- Time entry creation
How to get started
- Review existing test in
e2e/project-page-permissions.spec.ts for patterns
- Set up test users via
npm run setup:test-roles
- Start with login flow test (simplest)
- Build up to workflow execution (complex)
Testing infrastructure notes
- Playwright is configured in
playwright.config.ts
- Run with
npm run test:playwright
- Tests need Supabase running (
npm run docker:start)
Acceptance Criteria
Description
Current State
There's only 1 E2E test file (
e2e/project-page-permissions.spec.ts) covering permission-based access. Critical user flows are untested:The existing test structure is good — we just need more coverage.
Desired Outcome
Expand to cover:
Priority tests
How to get started
e2e/project-page-permissions.spec.tsfor patternsnpm run setup:test-rolesTesting infrastructure notes
playwright.config.tsnpm run test:playwrightnpm run docker:start)Acceptance Criteria