From 80ad1eb0f975763fe1d694eb55223427b5ec9a23 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Tue, 9 Jun 2026 06:45:03 +0000 Subject: [PATCH] test(smoke): fix three stale assertions surfaced by triage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 01 calculator: page lives at /calculator/ (confirmed live), not /reconstitution-calculator/ — the 404 failed all 3 calc tests. - 00 homepage: brand title is 'Peptide Repo' (with space); regex /peptiderepo/i never matched. Broadened to /peptide ?repo/i. - 03 admin: required-plugin slug is 'prautoblogger' (WP dir), not 'pr-autoblogger'. These were test bugs, not site regressions — the site serves all three correctly. Agent-Session: cto smoke-triage --- tests/00-homepage.spec.ts | 2 +- tests/01-reconstitution-calculator.spec.ts | 2 +- tests/03-admin-plugins.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/00-homepage.spec.ts b/tests/00-homepage.spec.ts index 6d82fea..9771715 100755 --- a/tests/00-homepage.spec.ts +++ b/tests/00-homepage.spec.ts @@ -29,7 +29,7 @@ test.describe('Homepage', () => { test('renders site name in page title', async ({ page }) => { await page.goto('/'); - await expect(page).toHaveTitle(/peptiderepo/i); + await expect(page).toHaveTitle(/peptide ?repo/i); }); test('wp-admin bar present (logged-in session)', async ({ page }) => { diff --git a/tests/01-reconstitution-calculator.spec.ts b/tests/01-reconstitution-calculator.spec.ts index d606a3e..ea84c0f 100755 --- a/tests/01-reconstitution-calculator.spec.ts +++ b/tests/01-reconstitution-calculator.spec.ts @@ -14,7 +14,7 @@ import { test, expect } from '@playwright/test'; -const CALC_PATH = process.env.CALC_PAGE_PATH ?? '/reconstitution-calculator/'; +const CALC_PATH = process.env.CALC_PAGE_PATH ?? '/calculator/'; test.describe('Reconstitution Calculator', () => { test.beforeEach(async ({ page }) => { diff --git a/tests/03-admin-plugins.spec.ts b/tests/03-admin-plugins.spec.ts index aeb4546..a75f026 100755 --- a/tests/03-admin-plugins.spec.ts +++ b/tests/03-admin-plugins.spec.ts @@ -25,7 +25,7 @@ const REQUIRED_PLUGINS = [ 'peptide-search-ai', 'peptide-repo-core', 'peptide-reconstitution-calculator', - 'pr-autoblogger', + 'prautoblogger', 'peptide-starter-theme', // theme, shown differently — checked separately ];