test(512-7 빨강 시험 가림): 393_1 횡단 판 안 열림 뜻으로 · 368_3 상수 위치 · m01_draft 진짜 폴더 파일 안 복사 · M02 「종류 더하기」를 「종류 추가」로

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 20:21:40 +09:00
co-authored by Claude Sonnet 5.5
parent 583f1004fe
commit 78b6928b23
4 changed files with 12 additions and 6 deletions
@@ -21,7 +21,7 @@ const TEXT = {
GroupName: ["그룹 이름", "Group name"],
GroupNew: ["새 그룹 {value}", "New group {value}"],
GroupUp: ["위로", "Up"],
AddKind: ["종류 더하기", "Add type"],
AddKind: ["종류 추가", "Add type"],
AddKindNote: [
"본보기 종류를 그대로 복사한 새 종류(이름 「본보기 2」) — 옵션 · 그룹 · 반영 · 그리는 법이 같음 · 이름 · 반영은 고쳐서 [저장]",
"New type copied from the template (name “template 2”) — same options, groups, reflect and drawing; edit name / reflect, then [Save]",
+5 -2
View File
@@ -16,10 +16,13 @@ def test_추가_측점_선_점선_끌기_없음() -> None:
graph = _read("B06_Section/B06_Section_UI_Longitudinal.ts")
assert 'station.kind === "irregular" && !station.plus' in graph
assert 'station.plus ? "plus" : station.kind' in graph
css = _read("B06_Section/B06_Section_UI_Style_Cross.css") + _read("B06_Section/B06_Section_UI_Style_Cross_Chart.css")
css = _read("B06_Section/B06_Section_UI_Style_Cross.css") + _read(
"B06_Section/B06_Section_UI_Style_Cross_Chart.css"
)
rule = css[css.index(".b06-chart__station-line--plus") :].split("}")[0]
assert "var(--color-warning)" in rule and "stroke-dasharray: 5 3" in rule
assert "PLUS_OWNER_PREFIX" in _read("B05_Profile/B05_Profile_UI_Profile_Layout.ts")
# 주인 앞머리는 공용 `common_util_structure_station.ts` 로 옮겨짐(Layout.ts 에는 없음)
assert 'PLUS_OWNER_PREFIX = "plus-"' in _read("common_util/common_util_structure_station.ts")
def test_누름_작은_창_우클릭_삭제() -> None:
@@ -53,12 +53,12 @@ def test_겉틀은_본문_칸():
assert "follow: false" in chrome and 'data-act="side-toggle"' not in chrome
def test_393_1_횡단_판_기본_접힘_자동_열림은_기억_안_함():
def test_393_1_횡단_판_기본_접힘_측점_고름은_판을_열지_않음():
# 513-2 — 측점 고름 = 내용만 갱신 · 열림 · 닫힘은 손잡이(누름)만 · 자동 열림(393-1) 걷음
chrome = _read("B05_Profile_UI_RouteEdit_Chrome.ts")
assert "defaultOpen: null," in chrome and "innerWidth >= 1500" not in chrome
# 측점 눈금 → 열되 기억 안 함 · 손잡이(누름)만 기억
cross = _read("B05_Profile_UI_RouteEdit_Cross.ts")
assert 'panels.open("cross", false)' in cross
assert "panels.open(" not in cross and "sidePanelsOf" not in cross
side = (ROOT / "ui_template" / "ui_template_side_panels.ts").read_text(encoding="utf-8")
assert "function open(id: string | null, remember = true): void {" in side
assert "JSON.stringify({ open: kept, width })" in side
+3
View File
@@ -56,6 +56,9 @@ LOOP = """가 = 나 + 1
@pytest.fixture
def client(tmp_path: Path, monkeypatch) -> TestClient:
for path in REAL.glob("*.json"):
# 진짜 폴더에 남은 자체 로직 파일은 안 복사 — 「파일에 안 씀」 판정이 흐려짐
if path.name == make.OWN:
continue
if not path.name.startswith("_") or path.name == store.mk.BOOK.name:
shutil.copy(path, tmp_path / path.name)
monkeypatch.setattr(store, "FOLDER", tmp_path)