From cb03e299e516a830f5ea59d50faa100eafed2b33 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 8 Oct 2026 08:15:25 +0100 Subject: [PATCH] fix(tests): assert the dashboard.md href, not the markdown-link label PyAutoBrain#499 restyles the "markdown version" anchor into an icon in the shared board theme, so test_html_is_self_contained's literal-anchor assertion fails on every Heart run since 2026-10-07 18:52Z. Assert the href survives the theme pass instead of pinning Brain's old markup. Co-Authored-By: Claude Fable 5.1 --- tests/test_dashboard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index 41473430..762e3311 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.py @@ -98,8 +98,10 @@ def test_html_is_self_contained(): assert "RED" in out # The header links the markdown twin and the repository front door. The # expected owner comes from the same declared config surface the renderer - # reads (the tenant firewall keeps org literals out of organ code). - assert 'markdown version' in out + # reads (the tenant firewall keeps org literals out of organ code). The + # shared Brain theme may restyle the markdown link (PyAutoBrain#499 renders + # it as an icon), so assert the href survives rather than the label text. + assert 'href="dashboard.md"' in out gh_owner = dashboard.REPO_OWNERS["PyAutoHeart"] assert (f'GitHub Page') in out