test(e2e): add ChapterView flows + stabilize runner #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds Playwright E2E coverage for ChapterView (large import/diff navigation + illustration rendering) and hardens the Playwright runner to avoid port collisions.
Changes
playwright.config.ts: run a dedicated dev server on127.0.0.1:5177, setbaseURLaccordingly, disable auto-opening HTML report.tests/e2e/chapterview-large.spec.ts: import a large session fixture and verify diff navigation.tests/e2e/chapterview-media.spec.ts: verify persistedsuggestedIllustrations.generatedImage.imageDatarenders as an<img>and the audio generate button is enabled.tests/e2e/helpers/sessionHarness.ts: shared helpers (fresh install + session import).tests/e2e/{diagnostic,debug-console}.spec.ts: gate behindLF_E2E_DIAGNOSTICS=1..gitignore: ignoreplaywright-report/andtest-results/; remove trackedplaywright-report/index.html.docs/E2E-TESTING.md: document dedicated port usage.Testing
npm run test:e2e