test(smoke): dossier page smoke guard — assert HTTP 200 + #prab-dossier + no fatal (v1.2.0)
Adds dossier smoke test to 03-admin-plugins.spec.ts (describe block: 'WP Admin — PRAutoBlogger Article Dossier'). Guards: - Menu-ordering regression: wrong hookname -> wp_die 404 (same class as v0.19.1 board bug) - PHP fatal on dossier load - Missing #prab-dossier container (template regression) - Stage-section regression (conditional on run data existing) Defensive strategy: - Tries canonical staging posts 925/930 via REST API first - Falls back to most recent post via /wp-json/wp/v2/posts - Falls back to post_id=0 (graceful empty state) with loud test.info() annotation - Stage-section assertions conditional: if stages present they must render; if absent the pre-substrate graceful state is expected (no failure) npx playwright test --list shows 24 tests (was 23). New test at 03-admin-plugins.spec.ts:185. TypeScript compiles without errors. Part of PRAutoBlogger v0.19.2 M2 milestone. Companion PR: peptiderepo/prautoblogger#158. Agent-Session: claude-sonnet-4-6
This commit is contained in:
14
CHANGELOG.md
14
CHANGELOG.md
@@ -2,6 +2,20 @@
|
||||
|
||||
All notable changes to the peptide-e2e smoke suite will be documented here.
|
||||
|
||||
## [1.2.0] - 2026-06-12
|
||||
|
||||
### Added
|
||||
- **Dossier page smoke test** (`03-admin-plugins.spec.ts` — `WP Admin — PRAutoBlogger Article Dossier`).
|
||||
Navigates to `/wp-admin/admin.php?page=prautoblogger-dossier&post_id=<N>`, asserts HTTP 200,
|
||||
`#prab-dossier` container visible, body does NOT contain "Invalid plugin page" or "Fatal error".
|
||||
Guards against: menu-ordering regression (wrong hookname → wp_die 404), PHP fatals on dossier
|
||||
load, missing dossier container, and stage-section regression.
|
||||
|
||||
Defensive strategy: tries canonical staging post IDs 925/930 first, then falls back to the
|
||||
most recent REST post, then falls back to post_id=0 (graceful empty state). Stage-section
|
||||
assertions are conditional on a run record existing. Loud test.info() annotations on fallback
|
||||
paths. New in PRAutoBlogger v0.19.2.
|
||||
|
||||
## [1.1.0] - 2026-06-12
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user