现有组件功能与Amesim组件比较对齐,补全功能;仿真服务启动环境检测,旧版json工程文件适配读取

This commit is contained in:
ljz committed 2026-09-13 20:01:56 +08:00
1 parent b6c22a54f8
commit 6fc9afe41d
119 files changed
+260114 -351

No files matched your search

+5 -4
View File
@@ -78,7 +78,7 @@ test("未知图形元件使用带端口和名称的默认节点且拖入动作
await expect(page.locator(".properties")).not.toContainText("仿真结果");
});
test("XML 导出拒绝目录未定义的组件参数", async ({ page }) => {
test("新版存档拒绝目录未定义的参数,保留当前有效工程及 XML", async ({ page }) => {
await page.goto("/");
await page
.getByRole("button", { name: /通用测试元件/ })
@@ -105,9 +105,10 @@ test("XML 导出拒绝目录未定义的组件参数", async ({ page }) => {
name: "仿真控制台",
exact: true,
});
await expect(consolePanel).toContainText("XML 生成失败");
await expect(consolePanel).toContainText("目录未定义的参数:typoGain");
await expect(consolePanel.getByLabel("生成的系统 XML")).toHaveCount(0);
await expect(consolePanel).toContainText("加载失败");
await expect(consolePanel).toContainText("未知参数 typoGain");
await expect(consolePanel.getByLabel("生成的系统 XML")).toContainText('<Parameter name="gain" value="1"');
await expect(consolePanel.getByLabel("生成的系统 XML")).not.toContainText("typoGain");
});
test("XML 参数使用可往返的双精度文本", async ({ page }) => {