From ceb695b6a9bc352a430c77644a807d29728f822a Mon Sep 17 00:00:00 2001 From: Jason Zhou Date: Wed, 30 Sep 2026 13:09:19 +1000 Subject: [PATCH] test(web): assert the playbook's inbound links both ways, and that pages still answer Co-Authored-By: Claude Opus 5.5 --- tests/test_gtm_engineering_page.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_gtm_engineering_page.py b/tests/test_gtm_engineering_page.py index 1661bf5b..9ff8613b 100644 --- a/tests/test_gtm_engineering_page.py +++ b/tests/test_gtm_engineering_page.py @@ -52,6 +52,12 @@ async def test_hub_is_linked_from_its_pillars_and_listed(clients: AsyncClient): "/use-cases/lead-enrichment-for-ai-agents", "/workflows"): assert f'href="{PATH}"' in (await clients.get(page)).text, page assert f"{PATH}<" in (await clients.get("/sitemap.xml")).text + # Hosted, the bundled pages and llms.txt keep the links with the markers unwrapped. + for page in ("/resources", "/people-search", "/leads-signals", "/grokbot", "/fable", + "/use-cases/lead-enrichment-for-ai-agents", "/llms.txt"): + r = await clients.get(page) + assert r.status_code == 200 and "/gtm-engineering" in r.text, page + assert "hosted-->" not in r.text, page async def test_hub_404s_on_a_self_hosted_registry(monkeypatch): @@ -66,8 +72,9 @@ async def test_hub_404s_on_a_self_hosted_registry(monkeypatch): for page in ("/", "/resources", "/people-search", "/leads-signals", "/grokbot", "/fable", "/use-cases/lead-enrichment-for-ai-agents", "/llms.txt"): r = await c.get(page) + assert r.status_code == 200, page assert "/gtm-engineering" not in r.text, page - assert "" not in r.text, page + assert "hosted-->" not in r.text, page finally: get_settings.cache_clear()