- M02 단가산출이 바꿔 둔 상세 부품 길(/m02/logic-lib)이 같은 탭에서 M01 로 가도 남아, M01 로직 목록 · 읽기가 M02 길로 가던 것 (M01 열 묶음 · 작업량 · 부모 · 관련 · 지문 칸이 M02 답엔 없음 · 로직 입력 · 개정 칸도 다름) - renderM01MasterData 처음에 setLogicApiPaths() 한 줄 - 시험 test_854_3_screen_leak 에 M01 진입 뒤 길 = /m01 점검 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 854-3 — 줄 쌓기 창 크기 듣기 해제 · M01 상세 길 되돌림(가짜 DOM · 진짜 코드).
|
|
|
|
① 줄 쌓기 화면 · M02 단가산출 그릇 = 열고 닫기를 다섯 번 되풀이해도 열린 동안 하나 · 닫으면 0
|
|
② M02 가 상세 길을 M02 로 바꿔 둔 뒤 M01 화면에 들어오면 M01 기본 길(`/m01`)
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import json
|
|
import os
|
|
import subprocess
|
|
|
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
def _run() -> dict:
|
|
proc = subprocess.run(
|
|
["node", os.path.join(HERE, "helper_854_3_screen_leak.cjs")],
|
|
capture_output=True,
|
|
text=True,
|
|
encoding="utf-8",
|
|
)
|
|
assert proc.returncode == 0, proc.stderr[-3000:]
|
|
return json.loads(proc.stdout)
|
|
|
|
|
|
def test_listeners_do_not_grow_and_m01_path_returns() -> None:
|
|
got = _run()
|
|
assert got["screen"] == [1, 0] * 5
|
|
assert got["tabs"] == [1, 0] * 5
|
|
|
|
|
|
def test_m01_entry_resets_logic_api_paths() -> None:
|
|
# M02 단가산출이 상세 길을 M02 로 바꿔 둔 뒤 M01 화면에 들어오면 M01 기본 길
|
|
assert _run()["page"] == {"before": "/m02/logic-lib", "after": "/m01"}
|