Files
Aislo/resources/tester/test_177_1_summary_unassigned_bg.py
T
eomsangdonandClaude Sonnet 5.5 c2d3b8ccd9 feat(table): 표 폭 CSS 변수 · 고칠 칸 옅은 테두리 되살림 · 구조물 조합 미지정 회색 (258-1 · 258-2 · 258-3)
- 템플릿 표 인라인 width → --dt-w · css width var(--dt-w) · 거리이정표 표 틀 폭 전체
- 고칠 수 있는 칸 td.is-can-edit outline 1px accent 28% (box-shadow 아님)
- B05 구조물 조합 미지정 = 구조물 리스트 램프 회색
- 시험 기대값 고침(243_1 · 246_1 · 177_1 · ui_data_table) · 새 시험 258_1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015sDZSjFvoiDjdGpgj3muc3
2026-10-11 13:58:29 +09:00

28 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
"""PLAN 177-1 → 258-3 — 구조물 조합 미연결 라벨 = 옅은 회색(구조물 리스트 램프 색) 배경 + 테두리(소스 시험)."""
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:not(.is-assigned)")
assert re.search(r"border-color:\s*var\(--color-text-muted\)", body)
assert re.search(r"background:\s*color-mix\([^;]*--color-text-muted[^;]*--color-surface", body)
assert not re.search(r"(^|[;\s])color:", body)
def test_테마_토큰_밝음_어두움_둘다():
th = open(os.path.join(ROOT, "ui_template", "ui_template_theme.css"), encoding="utf-8").read()
assert len(re.findall(r"--color-warning:\s*#", th)) >= 2