补充 INI 面板默认文件映射覆盖
结论:INI 面板会话加载日志现在展示默认 OPFS 参数文件和刀具表映射,浏览器 smoke 验证该 UI 入口仍通过 LinuxCNC-backed SDK/OPFS 边界加载。
This commit is contained in:
@@ -269,6 +269,16 @@ JOINTS = 3
|
||||
if (!uiLog.includes("restore_parameters=0") || !uiLog.includes("tooldata_load=0")) {
|
||||
throw new Error(`UI session log missing LinuxCNC load result: ${uiLog}`);
|
||||
}
|
||||
if (
|
||||
!uiLog.includes(
|
||||
"Parameter file: linuxcnc/machines/xyzab-tdr/linuxcnc.var -> /work/session-linuxcnc.var",
|
||||
) ||
|
||||
!uiLog.includes(
|
||||
"Tool table file: linuxcnc/machines/xyzab-tdr/tool.tbl -> /work/session-tool.tbl",
|
||||
)
|
||||
) {
|
||||
throw new Error(`UI session log missing OPFS default file mapping: ${uiLog}`);
|
||||
}
|
||||
uiDocument.getElementById("run-gcode").click();
|
||||
await waitFor(
|
||||
() => uiDocument.getElementById("log")?.textContent.includes("Ran G-code"),
|
||||
|
||||
Reference in New Issue
Block a user