Skip to content

Commit b79aaa0

Browse files
test: Add Playwright e2e tests for character detail view
- 10 e2e tests covering the PR #60 manual test plan: GSM-7 coloring, non-GSM red highlights, tooltip encoding/hex, keyboard a11y, multi-segment colors, whitespace display, collapsible section - Playwright config with auto-serving docs/ via http-server - Jest configured to ignore tests/e2e/, tsc includes only src/ - Remove legacy pr-55-review-notes.md (PR #55 already merged) - Update CLAUDE.md with e2e commands, .gitignore with e2e artifacts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40938d1 commit b79aaa0

9 files changed

Lines changed: 1067 additions & 132 deletions

File tree

‎.gitignore‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ typings/
4141
.context/
4242

4343
# Claude Code user-specific settings
44-
.claude/settings.local.json
44+
.claude/settings.local.json
45+
46+
# Playwright
47+
tests/e2e/results/
48+
tests/e2e/reports/

‎CLAUDE.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ npm run lint:fix # ESLint with auto-fix
1212
npm run check # Lint + test (mirrors CI)
1313
npm run release # Type-check + webpack build (outputs to docs/scripts/)
1414
npm run build # Type-check only (tsc)
15+
npm run test:e2e # Playwright e2e tests (serves docs/ locally)
16+
npm run test:e2e:ui # Playwright interactive UI mode
1517
```
1618

1719
## Project Structure
@@ -39,7 +41,9 @@ docs/ # GitHub Pages site
3941
scripts/ # Built JS bundles (from webpack)
4042
styles/ # CSS (tokens.css, layout.css, components.css, animations.css)
4143
pr-reviews/ # 3-agent + 1-human PR review docs
42-
tests/ # Jest test suites
44+
tests/ # Test suites
45+
*.test.js # Jest unit tests
46+
e2e/ # Playwright e2e tests (char-detail.spec.ts, etc.)
4347
dist/ # Built library output (tsc)
4448
```
4549

‎docs/pr-reviews/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Each PR gets its own folder containing reviews from different reviewers:
99
```
1010
docs/pr-reviews/
1111
├── README.md <- You are here
12-
├── pr-55-review-notes.md # Standalone review notes (legacy format)
1312
└── 60/ # PR #60: Restore per-character detail view
1413
├── claude.md # Review by Claude Code
1514
├── copilot.md # Review by GitHub Copilot

‎docs/pr-reviews/pr-55-review-notes.md‎

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)