Playwright acceptance test suite for review-loop, the bridge between human reviewers and coding agents for Astro sites.
This repo is kept separate from the main package so the acceptance tests can exercise the integration as an external consumer would, installing from npm and running against a real Astro dev server.
- Node.js >= 18
- The main
review-looprepo cloned as a sibling directory (for local development)
npm install
npx playwright install chromiumThe test fixture in fixture/ is a minimal Astro site that uses review-loop as a dev dependency. During local development it references the sibling directory via a file dependency.
npm test # headless
npm run test:ui # interactive Playwright UI| File | Coverage |
|---|---|
01-integration.spec.ts |
Integration lifecycle, dev-only activation |
02-fab.spec.ts |
Floating action button behaviour |
03-selection.spec.ts |
Text selection and annotation creation |
04-highlights.spec.ts |
Highlight rendering and restoration |
05-persistence.spec.ts |
Annotation persistence across reloads |
06-panel.spec.ts |
Review panel UI and interactions |
07-page-notes.spec.ts |
Page note CRUD |
08-multi-page.spec.ts |
Cross-page annotation scoping |
09-export.spec.ts |
Markdown export |
10-keyboard-shortcuts.spec.ts |
Keyboard shortcut handling |
11-edge-cases.spec.ts |
Edge cases and error recovery |
12-production-safety.spec.ts |
Zero traces in production builds |
13-element-annotations.spec.ts |
Element annotation (Alt+click) functionality |