Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Se7ytqbohmBQnfYpwYFnYf
26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
"""401-3 평면 곡선 R 창 · 등고선 자물쇠가 도구줄 [되돌리기] 를 덮어 누름이 안 가던 것.
|
|
|
|
지도 위 표지 층(1) < 도구줄 · 횡단 판 층(2) — 표지가 도구줄 · 판 손잡이 누름을 안 가로챔.
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_401_3_plan_label_under_tools.py -q
|
|
"""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
B05 = Path(__file__).resolve().parents[2] / "B05_Profile"
|
|
|
|
|
|
def _z(css_name: str, selector: str) -> int:
|
|
css = (B05 / css_name).read_text(encoding="utf-8")
|
|
block = css.split(selector + " {", 1)[1].split("}", 1)[0]
|
|
return int(re.search(r"z-index:\s*(\d+)", block).group(1))
|
|
|
|
|
|
def test_표지는_도구줄_판_밑():
|
|
tools = _z("B05_Profile_UI_Style.css", ".b05-route__view-controls")
|
|
side = _z("B05_Profile_UI_Style_RouteEdit.css", ".b05-routeedit__side-wrap")
|
|
label = _z("B05_Profile_UI_Style_RouteEdit.css", ".b05-routeedit__label")
|
|
lock = _z("B05_Profile_UI_Style_RouteEdit_ContourLock.css", ".b05-contourlock")
|
|
assert label < tools and lock < tools
|
|
assert label < side and lock < side
|