Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ji4nuyLVHcxrXWHTdb5nRD
21 lines
963 B
Python
21 lines
963 B
Python
"""383-3 노선 추천 모달 [재계산] — 측점 맞춤 오른쪽 같은 줄 · 늘 보임 · 바꾼 것 있을 때만 켜짐.
|
|
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_383_3_rerun_row.py -q
|
|
"""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
B05 = ROOT / "B05_Profile"
|
|
|
|
|
|
def test_재계산_한_줄_늘_보임_바꿨을_때만_켜짐() -> None:
|
|
ts = (B05 / "B05_Profile_UI_RouteEdit_Recommend.ts").read_text(encoding="utf-8")
|
|
assert re.search(r'<div class="b05-routerec__row"><button[^>]*data-act="rerun">재계산', ts)
|
|
assert 'data-act="rerun" hidden' not in ts and "rerun.hidden" not in ts
|
|
assert "rerun.before(snapToggle)" in ts # 토글이 같은 줄 왼쪽
|
|
assert "rerun.disabled = busy || !dirty || invalid.size > 0;" in ts
|
|
css = (B05 / "B05_Profile_UI_Style_RouteRecommend.css").read_text(encoding="utf-8")
|
|
assert re.search(r"\.b05-routerec__row \{\s*display: flex;", css)
|