Skip to content

[TESTING] Expand Playwright E2E tests to cover critical user flows #10

@itigges22

Description

@itigges22

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

  1. Login/logout flow
  2. Project CRUD with permission checks
  3. Workflow execution (start → complete)
  4. Time entry creation

How to get started

  1. Review existing test in e2e/project-page-permissions.spec.ts for patterns
  2. Set up test users via npm run setup:test-roles
  3. Start with login flow test (simplest)
  4. 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

  • 5+ new E2E test files
  • Auth flow tested
  • Project CRUD tested
  • At least one workflow test
  • All tests pass in CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestingNeed to build testsenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions