- 되돌리기 · 다시하기 · 회전 아이콘을 .ui-btn__icon 으로 싸서 냄: B05 도구줄 32 → 34 · 종단 도구줄 18 → 22 가 단 그대로 32 · 18 - 배수 제안 머리 줄 [적용] · [넣기] · [닫기] flex none · nowrap: 제목이 길면 두 줄로 눌려 22 → 34 가 22 그대로 - 시험 test_553_8_glass_height 새 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
"""553-8 ② B05 · B06 유리 단추 · [적용] 높이 = 단 지킴 시험 — 화면 실측은 Playwright(자기 tmp).
|
|
|
|
① 아이콘만 든 유리 단추의 그림은 `.ui-btn__icon` 으로 싸서 냄(맨 svg 는 단 높이를 밀어 32 → 34 · 18 → 22)
|
|
② 배수 제안 머리 줄 단추는 눌리지 않음(두 줄 되면 22 → 34)
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
B05 = Path(__file__).resolve().parents[2] / "B05_Profile"
|
|
|
|
|
|
def test_아이콘_단추_그림은_부품_아이콘으로_쌈():
|
|
src = (B05 / "B05_Profile_UI_RouteEdit_Chrome.ts").read_text(encoding="utf-8")
|
|
block = re.search(
|
|
r"export const HALF_TURN_ICON = \{.*?\n\};\n.*?export const HISTORY_ICON = \{.*?\n\};",
|
|
src,
|
|
re.S,
|
|
).group(0)
|
|
assert block.count("<svg") == 4
|
|
assert block.count('<span class="ui-btn__icon"><svg') == 4
|
|
|
|
|
|
def test_배수_제안_머리_단추_안_눌림():
|
|
css = (B05 / "B05_Profile_UI_Style_Drainage.css").read_text(encoding="utf-8")
|
|
rule = re.search(r"\.b05-drainage__suggest-head > \.ui-btn \{([^}]*)\}", css).group(1)
|
|
assert "flex: none;" in rule
|
|
assert "white-space: nowrap;" in rule
|