diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts index 5e989147..2545db0e 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts @@ -137,7 +137,7 @@ export function createInitialPanel(params: InitialPanelParams): InitialPanel { render(); params.apply( copy(picked.snapshot), - `추천을 「${choiceLabel(picked.logic, picked.weights)}」로 바꿨습니다 — 다시 계산은 [확인]에서.`, + `노선 추천 「${choiceLabel(picked.logic, picked.weights)}」 적용 — 다시 계산은 [확인]에서.`, ); }, }); diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts index 3fdf7292..a8ad81c6 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts @@ -18,7 +18,7 @@ type Vertex = [number, number]; export const LOGIC_LABEL: Record = { follow: "예상노선 추적", earthwork: "토공 최소", - gentle: "기울기 순한 노선", + gentle: "기울기 순한", weighted: "비중 계산", }; diff --git a/resources/tester/test_b05_routeedit_initial.py b/resources/tester/test_b05_routeedit_initial.py index 4b1d1b4d..5b79e2e4 100644 --- a/resources/tester/test_b05_routeedit_initial.py +++ b/resources/tester/test_b05_routeedit_initial.py @@ -163,3 +163,22 @@ def test_미리_보기_지도_선(results): ] assert lines["empty"] == [] assert lines["oneDot"] == [] # 점 하나로는 선이 안 됨 + + +def test_도구_막대는_노선_추천_하나만(): + """편집 창 도구 막대 — [노선 추천] 하나 · 추천 묶음(로직 단추 · 슬라이더 · 제약 칸) 없음 · + 「연 상태로」 없음. 그 묶음은 모달(`_Recommend`)로 옮겼다.""" + page = os.path.join(HERE, "..", "..", "B05_Profile") + chrome = open(os.path.join(page, "B05_Profile_UI_RouteEdit_Chrome.ts"), encoding="utf-8").read() + assert chrome.count('data-act="recommend"') == 1 + assert "연 상태로" not in chrome and "history-reset" not in chrome + assert chrome.index('data-act="recommend"') < chrome.index('data-act="contour-minor"') + initial = open( + os.path.join(page, "B05_Profile_UI_RouteEdit_Initial.ts"), encoding="utf-8" + ).read() + assert "data-criteria" not in initial and "data-weight" not in initial + recommend = open( + os.path.join(page, "B05_Profile_UI_RouteEdit_Recommend.ts"), encoding="utf-8" + ).read() + for name in ("follow", "earthwork", "gentle", "weighted"): + assert f'"{name}"' in recommend