diff --git a/tests/test_homepage.py b/tests/test_homepage.py index ec60713..d437651 100644 --- a/tests/test_homepage.py +++ b/tests/test_homepage.py @@ -7,6 +7,7 @@ fetching climate helpers are not called at all. """ import datetime import json +import pathlib import time import pytest @@ -134,6 +135,25 @@ def test_hero_locate_has_a_status_slot(client, no_feed): assert 'aria-live="polite"' in html +def test_homepage_brand_keeps_the_lockup_styling(client, no_feed): + """The homepage renders the brand as

so the hero owns + the page's only h1. The lockup styling is written against `.brand h1`, so + the class MUST be matched there too — otherwise the brand silently falls + back to block layout, which baseline-aligns the mark instead of centring it + and drops the monospace wordmark. Nothing else catches this: the page still + renders, and every other test still passes, while the header looks wrong. + """ + html = client.get(f"{B}/").text + assert 'class="site-name"' in html + assert "