高温氦气物性补全;三通四通能量计算bug修正
This commit is contained in:
1 parent
6fc9afe41d
commit
2b07d996cf
133 files changed
+5230
-253310
No files matched your search
@@ -243,7 +243,7 @@ test("不能编码新版的工程不覆盖已有浏览器存档,也不下载
|
||||
expect(downloads).toEqual([]);
|
||||
});
|
||||
|
||||
test("浏览器工程内容保留旧名称时,按存储名称连续加载仍能恢复工程", async ({
|
||||
test("加载始终读取最后一次浏览器存档并采用存档名称,不按输入名称选历史工程", async ({
|
||||
page,
|
||||
}) => {
|
||||
const storedName = "已重命名 工程.v3";
|
||||
@@ -251,8 +251,9 @@ test("浏览器工程内容保留旧名称时,按存储名称连续加载仍
|
||||
({ name, project }) => {
|
||||
localStorage.setItem(
|
||||
`system-simulation-flow:project:${encodeURIComponent(name)}`,
|
||||
JSON.stringify(project),
|
||||
JSON.stringify({ ...project, name, nodes: [] , edges: [] }),
|
||||
);
|
||||
localStorage.setItem("system-simulation-flow:autosave", JSON.stringify(project));
|
||||
},
|
||||
{ name: storedName, project: wideProject },
|
||||
);
|
||||
@@ -261,14 +262,14 @@ test("浏览器工程内容保留旧名称时,按存储名称连续加载仍
|
||||
await expect(page.locator(".flow-canvas .react-flow__node")).toHaveCount(
|
||||
wideProject.nodes.length,
|
||||
);
|
||||
await expect(projectNameField(page)).toHaveValue(storedName);
|
||||
await expect(projectNameField(page)).toHaveValue(wideProject.name);
|
||||
|
||||
await deleteFirstNode(page);
|
||||
await page.getByRole("button", { name: "加载工程", exact: true }).click();
|
||||
await expect(page.locator(".flow-canvas .react-flow__node")).toHaveCount(
|
||||
wideProject.nodes.length,
|
||||
);
|
||||
await expect(projectNameField(page)).toHaveValue(storedName);
|
||||
await expect(projectNameField(page)).toHaveValue(wideProject.name);
|
||||
});
|
||||
|
||||
for (const { internalName, expectedName } of [
|
||||
|
||||
Reference in new issue
Block a user