diff --git a/tests/03-admin-plugins.spec.ts b/tests/03-admin-plugins.spec.ts index a0c97bf..774c246 100755 --- a/tests/03-admin-plugins.spec.ts +++ b/tests/03-admin-plugins.spec.ts @@ -100,8 +100,8 @@ test.describe('WP Admin — Peptide Repo Core admin', () => { // PR Core registers the peptide CPT which creates a "Peptides" menu item const nav = page.locator('#adminmenu'); await expect(nav).toBeVisible(); - // "Peptides" top-level menu item is registered by the peptide CPT - await expect(nav.locator('text=Peptides')).toBeVisible({ timeout: 10_000 }); + // PR Core registers the peptide CPT, which adds a post_type=peptide admin menu/submenu (label-agnostic). + await expect(nav.locator('a[href*="post_type=peptide"]').first()).toBeAttached({ timeout: 10_000 }); }); test('PR Core Settings page loads', async ({ page }) => {