feat(e2e): admin smoke coverage for Peptide News + PR Vision (v1.7.0) #20
Reference in New Issue
Block a user
Delete Branch "claude/e2e-news-vision-admin-20260617"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
Adds two new Playwright smoke spec files extending admin coverage to the two previously uncovered plugins:
tests/07-peptide-news-admin.spec.ts— Peptide News Plugin (4 pages, 5 tests)tests/08-pr-vision-admin.spec.ts— PR Vision plugin (4 pages, 6 tests)Also bumps version 1.5.0 → 1.7.0 and adds CHANGELOG entry.
Spec 07 — Peptide News Plugin admin
Menu slugs (from
admin/class-pn-admin-menu.php):peptide-news-dashboard,peptide-news-settings,peptide-news-articles,peptide-news-costsTests:
.pn-summary-cards,.pn-date-filter<form>presentSkip-if-absent:
isPluginAbsent()helper checks for "Invalid plugin page", "do not have sufficient permissions", or URL redirect strippingpage=. All tests skip loudly instead of hard-failing when plugin not installed.Spec 08 — PR Vision admin
Menu slugs (from
class-prv-admin-page.php,class-prv-settings-page.php,class-prv-costs-page.php,class-prv-call-log-page.php):pr-vision,pr-vision-settings,pr-vision-costs,pr-vision-callsTests:
#prv-key-card) present, status badge (#prv-key-source-badge) visible#prv_api_keyrenders withvalue=""(stored key never output); full page HTML must not contain"sk-or-"(OpenRouter key prefix)Skip-if-absent at two levels:
#prv-key-cardabsent (Settings v0.2.0 not yet deployed) → targeted skip on key-manager tests onlySelectors sourced from source code:
class-prv-admin-page.php— h1 headingclass-prv-key-manager-renderer.php—#prv-key-card,#prv-key-source-badge,#prv_api_keyRisk flags
workers: 1compatibility maintainedpage.content()assertion on"sk-or-"absence guards key leakage regressionTest plan
CI lint-js (
node --check/npx tsc --noEmit) validates TypeScript on PR. Functional run gates on next staging deploy of both plugins (both live on staging since 2026-06-13/14).