From 2fadc7b22c72863f91e9a79a91ecbdce0aae8959 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 12 Jun 2026 00:53:13 -0700 Subject: [PATCH] Fix stale sidebar regression test to match the gap-px markup (#6232) test_sidebar_account_block_uses_leading_tight hardcoded gap-0.5 in its selector, but the sidebar account-block div moved to gap-px during UI polish (#6196), so the regex stopped matching and the test failed across every studio PR's Repo tests (CPU). Match the gap utility loosely (gap-\S+) since this guard is about the leading-* class for descender clipping, not the spacing. --- tests/studio/test_studio_text_descender_clipping.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/studio/test_studio_text_descender_clipping.py b/tests/studio/test_studio_text_descender_clipping.py index 0b805cbd6f..ac26a10f06 100644 --- a/tests/studio/test_studio_text_descender_clipping.py +++ b/tests/studio/test_studio_text_descender_clipping.py @@ -36,8 +36,10 @@ def test_model_selector_trigger_label_uses_leading_tight(): def test_sidebar_account_block_uses_leading_tight(): src = _read(APP_SIDEBAR) + # Match the account-block parent div regardless of its gap utility (gap-0.5, + # gap-px, ...); this guard is about the leading-* class, not the spacing. pattern = re.compile( - r'', + r'', ) matches = pattern.findall(src) assert matches, "could not find sidebar account-block parent div"