smoke:L3 step2 断言从 PlaceholderView 更新为 Step2View(反映 12 个 view 已迁移)

This commit is contained in:
DXC
2026-06-17 08:58:29 +08:00
parent 3d4462f4e9
commit ef3de632d3

View File

@ -293,11 +293,11 @@ def smoke_e2e():
"mode=ndwi" in log_text,
"→ 找 ['mode=ndwi']")
# ---- 切到 step2 占位 ----
# ---- 切到 step2(真实 viewservice 仍走占位 ----
win.nav_list.setCurrentRow(1)
view_step2 = win._views.get("step2")
report("L3", "_views['step2'] 是占位 PlaceholderView",
type(view_step2).__name__ == "PlaceholderView",
report("L3", "_views['step2'] 是真实 Step2View已迁移",
type(view_step2).__name__ == "Step2View",
f"type={type(view_step2).__name__}")
# 清掉旧日志,重置 worker
@ -308,9 +308,9 @@ def smoke_e2e():
loop.exec_()
log_text = win.log_text.toPlainText()
report("L3", "step2 占位日志含 Router 收到 step2 请求",
report("L3", "step2 真实 view 派发后日志含 Router 收到 step2 请求",
"收到 step2 请求" in log_text)
report("L3", "step2 占位日志含 Service… not_implemented",
report("L3", "step2 service 走占位日志含 Service… not_implemented",
"not_implemented" in log_text,
f"log 片段:{log_text[-200:]!r}")