Conflict: CHANGELOG.md (add/add) and package.json (v1.1.0 vs v1.2.0).
Resolution:
- CHANGELOG.md: keep both entries, v1.2.0 above v1.1.0 (chronological order).
Updated v1.2.0 description to reference v0.19.2 / v0.19.3 (hotfix context).
- package.json: use version 1.2.0 (PR #14 head; dossier smoke is the newer addition).
- tests/03-admin-plugins.spec.ts: auto-merged by git — board describe block (PR #13)
at line 97, dossier describe block (PR #14) at line 158. Both conserved.
Dossier smoke selector #prab-dossier verified against v0.19.3 template
(templates/admin/dossier-page.php line 62/86) — registration parent change
does not affect markup.
Agent-Session: dossier-403-hotfix-20260612
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
Add board page smoke test to 03-admin-plugins.spec.ts under the
'WP Admin — PRAutoBlogger board page' describe block.
The test navigates to /wp-admin/admin.php?page=prautoblogger-board and
asserts:
1. HTTP 200 (not wp_die 404)
2. #wpbody visible (authenticated admin session confirmed)
3. body does NOT contain 'Invalid plugin page' (the wp_die string)
4. #prab-board container visible (selector from templates/admin/board-page.php)
This guards against the v0.19.1 regression class: PRAutoBlogger_Board_Page
was registered at admin_menu priority 10, before the parent top-level menu
(also 10). WordPress computed the wrong hookname (admin_page_*) at
add_submenu_page() time; at request time it recomputed prautoblogger_page_*,
found nothing, and called wp_die() — 404. The board was un-navigable since
v0.19.0 shipped. With this test in the deploy gate, this failure class is
now un-shippable.
Spec compiles and lists cleanly (npx playwright test --list: 23 tests).
Cannot be validated against prod until v0.19.1 deploys; stated in spec comment.
Agent-Session: board-404-hotfix-20260612
2026-06-12 08:32:08 +00:00
3 changed files with 11 additions and 69 deletions
"description":"Playwright smoke tests for peptiderepo.com (staging + production)",
"private":true,
"scripts":{
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.