fix(tests): update stale test assertions to match current behavior

- test_draft/future_article: route intentionally redirects to parent (302) instead
  of bare 404 — rename tests and update assertion accordingly
- test_dashboard_has_content_links: /admin/templates and /admin/scenarios are
  subnav links shown only on content section pages, not the main dashboard;
  test now only checks /admin/articles which is always in the sidebar
- test_seo_sidebar_link: sidebar labels the link "Analytics" (not "SEO Hub"
  which is the page title); test now checks for /admin/seo URL presence

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-27 08:44:52 +01:00
parent 9507767de1
commit eef3ad2954
2 changed files with 11 additions and 7 deletions

View File

@@ -499,7 +499,8 @@ class TestSeoAdminRoutes:
async def test_seo_sidebar_link(self, admin_client, db):
resp = await admin_client.get("/admin/")
text = await resp.get_data(as_text=True)
assert "SEO Hub" in text
# Sidebar link goes to /admin/seo (labelled "Analytics" in the nav).
assert "/admin/seo" in text
# ── Assertion boundary tests ─────────────────────────────────