Skip to content

Add Playwright e2e test suite#34

Merged
selfcontained merged 2 commits into
mainfrom
worktree-e2e-playwright-tests
Mar 11, 2026
Merged

Add Playwright e2e test suite#34
selfcontained merged 2 commits into
mainfrom
worktree-e2e-playwright-tests

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Adds 17 Playwright e2e tests across 5 spec files covering app shell layout, agent CRUD lifecycle, API validation, settings pane, and sidebar interactions
  • Adds data-testid attributes to key UI components (sidebar, header, footer, terminal pane, dialogs, service status indicators) for reliable test selectors
  • Configures Playwright with auto web build + dev server startup on an isolated test port
  • Adds npm run test:e2e script

Test coverage

Spec file Tests What it covers
app-shell.spec.ts 4 Main layout renders, empty state, health status, logo
agent-crud.spec.ts 6 Empty list, create via UI, cancel dialog, SSE updates, expand details, delete via overflow
api-health.spec.ts 4 Health endpoint, agents list, cwd validation, type validation
settings.spec.ts 1 Open/close settings pane
sidebar-interactions.spec.ts 2 Sidebar collapse/expand, create dialog opens

Test plan

  • All 17 tests pass locally (E2E_PORT=8799 npm run test:e2e)
  • npm run finalize:web passes (type check + build)
  • Review data-testid naming conventions

🤖 Generated with Claude Code

Brad Harris and others added 2 commits March 10, 2026 23:57
Introduces 17 end-to-end tests across 5 spec files covering:
- App shell layout (sidebar, header, terminal, status footer)
- Agent CRUD (create via UI, SSE updates, select/expand, delete via overflow)
- API health and input validation
- Settings pane open/close
- Sidebar toggle (collapse/expand)

Adds data-testid attributes to key UI components for reliable test selectors.
Configures Playwright to auto-build web and start a dev server on a test port.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Install Playwright chromium in CI
- Create isolated CI test database
- Run e2e tests after build step
- Upload test results as artifact on failure
- Make DATABASE_URL configurable in playwright config for CI

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@selfcontained
selfcontained merged commit 3b218a7 into main Mar 11, 2026
1 check passed
@selfcontained
selfcontained deleted the worktree-e2e-playwright-tests branch March 11, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant