Skip to content

test: Add E2E testing with Playwright for critical user flows #207

@Xhristin3

Description

@Xhristin3

Problem Statement

No end-to-end tests exist. The critical user flow (register → login → create stream → view dashboard → WebSocket connect) has zero automated verification across the full stack.

Evidence

No Playwright, Cypress, or Selenium configuration exists in any package.

Impact

Integration bugs across service boundaries (e.g., auth cookie not sent correctly from Next.js to NestJS, WebSocket auth failing due to CORS, stream creation not reflected in dashboard) cannot be caught automatically.

Proposed Solution

Add @playwright/test as a root devDependency. Create E2E tests for:

  1. User registration and login flow
  2. Stream creation and listing
  3. Tag attachment and removal
  4. Admin dashboard loading
  5. WebSocket connection with JWT auth
  6. Error pages (404, 403)

Acceptance Criteria

  • Playwright configured with baseURL targeting localhost:3000
  • Registration + login flow test passes
  • Stream CRUD flow test passes
  • Admin dashboard restricted access test passes
  • CI pipeline runs E2E tests with PostgreSQL service container

File Map

  • e2e/playwright.config.ts — new
  • e2e/tests/auth.spec.ts — new
  • e2e/tests/streams.spec.ts — new
  • e2e/tests/admin.spec.ts — new
  • .github/workflows/ci.yml — add E2E job

Labels: testing
Priority: Medium | Difficulty: Advanced | Estimated Effort: 3d


Labels: testing
Priority: Medium | Difficulty: Advanced | Estimated Effort: 3d
Backlog ID: REPO-024

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaigntestingTests and test coverage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions