Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jonfdxn1Xit9bdkNJpE4G
23 lines
847 B
Python
23 lines
847 B
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 173-1 — 집계 항목 연결 라벨 = 글자색 대신 연한 초록 배경 + 테두리(소스 시험)."""
|
|
|
|
import os
|
|
import re
|
|
|
|
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
CSS = os.path.join(ROOT, "B05_Profile", "B05_Profile_UI_Style_Structures.css")
|
|
|
|
|
|
def _rule(sel: str) -> str:
|
|
src = open(CSS, encoding="utf-8").read()
|
|
m = re.search(re.escape(sel) + r"\s*\{([^}]*)\}", src)
|
|
assert m, sel
|
|
return m.group(1)
|
|
|
|
|
|
def test_연결됨_배경_테두리_성공색_글자색_없음():
|
|
body = _rule(".b05-structure__summary-name.is-assigned")
|
|
assert re.search(r"border-color:\s*var\(--color-success\)", body)
|
|
assert re.search(r"background:\s*color-mix\([^;]*--color-success[^;]*--color-surface", body)
|
|
assert not re.search(r"(^|[;\s])color:", body)
|