test(smoke): T4 探针独立性断言——独立屏激活期战斗屏宿主隐藏/战斗节点提交后恢复

ui_probe 入口停点段:+独立性断言二支(level_screen.visible 且 _battle_root.hidden=零透出契约;press_candidate 进首战后 _battle_root 恢复+level_screen 不可见=屏级互斥恢复);断言消息 route_overlay 残留清零+注释措辞随独立屏。ui_click_probe 入口段:+独立性断言(屏激活期宿主隐藏)。
轻闸=冒烟 557/0+五探针全 PASS 零脚本错误。
This commit is contained in:
DKChan committed 2026-09-28 06:45:04 +08:00
1 parent a055722372
commit 3dffbdea23
2 files changed
+10 -2

No files matched your search

+3
View File
@@ -91,6 +91,9 @@ func _ready() -> void:
# 停点前移批 2026-09-23:关卡开始 = 入口选路停点——press_candidate 图上命中路径选入口候选进首战(候选按钮退役 2026-09-28)
#(首格可点 AC 口径随之含入口选路一步:菜单点击 → 停点呈现 → pick → 棋盘安装)
if main.level_screen.visible:
# 独立性断言(形态升格批 2026-09-28):独立屏激活期战斗屏宿主整体隐藏
if main._battle_root.visible:
_problems.append("独立屏激活期战斗屏宿主未隐藏(零透出契约失守)")
main.level_screen.press_candidate(0)
await get_tree().process_frame
await get_tree().process_frame
+7 -2
View File
@@ -63,8 +63,11 @@ func _ready() -> void:
await get_tree().process_frame
# ---- 入口选路停点(停点前移批 2026-09-23:关卡开始即出节点图——level_started 后、首战前弹选路层;
# press_candidate 图上命中路径 pick 入口单候选进首战——候选按钮退役 2026-09-28)----
# ---- 独立性断言(形态升格批 2026-09-28:独立屏激活期战斗屏宿主整体隐藏,零透出)----
if not main.level_screen.visible:
problems.append("关卡开始未弹入口选路停点(route_overlay 应可见)")
problems.append("关卡开始未弹入口选路停点(level_screen 应可见)")
elif main._battle_root.visible:
problems.append("独立屏激活期战斗屏宿主未隐藏(零透出契约失守)")
elif main.runner == null or not main.runner.awaiting_choice() \
or main.runner.next_candidate_ids().size() != 1:
problems.append("入口停点状态失守(选路态 + 入口单候选)")
@@ -72,6 +75,8 @@ func _ready() -> void:
main.level_screen.press_candidate(0)
await get_tree().process_frame
await get_tree().process_frame
if not main._battle_root.visible or main.level_screen.visible:
problems.append("选路提交战斗节点后未切回战斗屏(屏级互斥恢复失守)")
# ---- 放弃入口·冒险模式可见 + 战斗中按下被拒(真实按钮路径——入口挂选路停点,战斗中拒绝为防御分支)----
if main.level_screen.abandon_btn == null or not main.level_screen.abandon_btn.visible:
problems.append("冒险模式放弃按钮未开放(选路停点入口在案)")
@@ -80,7 +85,7 @@ func _ready() -> void:
await get_tree().process_frame
if main.adventure == null or String(main.adventure.state) != "running":
problems.append("首战中放弃未被拒(战斗域单事务在飞——state 应保持 running)")
# ---- 既有断言(回归基线;A 区进度条断言随 停点前移批 2026-09-23 退役——节点链进度由关卡画面选路覆盖层承载)----
# ---- 既有断言(回归基线;A 区进度条断言随 停点前移批 2026-09-23 退役——节点链进度由关卡画面独立屏承载)----
if main.board_view._cells.is_empty():
problems.append("棋盘格未生成(cells=0)")
if main.board_view.board() == null: