feat(web): Playwright E2E test suite for critical paths #152

Merged
jason.woltje merged 2 commits from feat/p7-004-e2e-playwright into main 2026-03-15 19:46:14 +00:00
Owner

Summary

  • Installs in and configures for local dev (web on :3000, gateway on :4000)
  • Adds E2E tests for all critical user paths: auth (login/register/validation), chat (page load, new conversation), projects (list, empty state), settings (4 tabs), admin (role guard, tab switching), navigation (sidebar links, route transitions)
  • Adds undefined
     ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "test:e2e" not found

Did you mean "pnpm test"? script, separate , and ESLint config so e2e files pass pre-commit hook

  • Auth helper () supports test-user login; authenticated tests skip gracefully when seeded credentials are absent

Test plan

mosaic-stack@ typecheck /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3
turbo run typecheck

 ELIFECYCLE  Command failed.
 WARN  Local package.json exists, but node_modules missing, did you mean to install? passes

mosaic-stack@ lint /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3
turbo run lint

 ELIFECYCLE  Command failed.
 WARN  Local package.json exists, but node_modules missing, did you mean to install? passes

mosaic-stack@ format:check /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3
prettier --check "**/*.{ts,tsx,js,jsx,json,md}"

 ELIFECYCLE  Command failed.
 WARN  Local package.json exists, but node_modules missing, did you mean to install? passes

  • None of the selected packages has a "test:e2e" script runs against a live web + gateway stack

Closes #55

🤖 Generated with Claude Code

## Summary - Installs in and configures for local dev (web on :3000, gateway on :4000) - Adds E2E tests for all critical user paths: auth (login/register/validation), chat (page load, new conversation), projects (list, empty state), settings (4 tabs), admin (role guard, tab switching), navigation (sidebar links, route transitions) - Adds undefined  ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "test:e2e" not found Did you mean "pnpm test"? script, separate , and ESLint config so e2e files pass pre-commit hook - Auth helper () supports test-user login; authenticated tests skip gracefully when seeded credentials are absent ## Test plan - [ ] > mosaic-stack@ typecheck /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3 > turbo run typecheck  ELIFECYCLE  Command failed.  WARN  Local package.json exists, but node_modules missing, did you mean to install? passes - [ ] > mosaic-stack@ lint /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3 > turbo run lint  ELIFECYCLE  Command failed.  WARN  Local package.json exists, but node_modules missing, did you mean to install? passes - [ ] > mosaic-stack@ format:check /home/jwoltje/src/mosaic-mono-v1/.claude/worktrees/agent-a65504eb/.claude/worktrees/agent-a2a269ff/.claude/worktrees/agent-aa18c957/.claude/worktrees/agent-a0518f9d/.claude/worktrees/agent-a80838be/.claude/worktrees/agent-a1e29fb3 > prettier --check "**/*.{ts,tsx,js,jsx,json,md}"  ELIFECYCLE  Command failed.  WARN  Local package.json exists, but node_modules missing, did you mean to install? passes - [ ] None of the selected packages has a "test:e2e" script runs against a live web + gateway stack Closes #55 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 2 commits 2026-03-15 19:46:05 +00:00
docs: add user, admin, and developer guides (closes #57)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
75a844ca92
Create docs/guides/ with three comprehensive guides covering end-user
workflows, admin operations and environment reference, and developer
architecture, local setup, tool extension, schema, and API reference.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat(web): add Playwright E2E test suite for critical paths (#55)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
a7804e689d
Sets up @playwright/test in apps/web with playwright.config.ts
targeting localhost:3000. Adds E2E test coverage for all critical paths:
auth (login/register/validation), chat (page load, new conversation),
projects (list, empty state), settings (4 tab switches), admin (tab
switching, role guard), and navigation (sidebar links, route transitions).

Includes auth helper, separate tsconfig.e2e.json, and allowDefaultProject
ESLint config so e2e files pass the pre-commit hook. Adds pnpm test:e2e script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje merged commit cb92ba16c1 into main 2026-03-15 19:46:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#152