高温氦气物性补全;三通四通能量计算bug修正

This commit is contained in:
ljz committed 2026-09-15 17:57:20 +08:00
1 parent 6fc9afe41d
commit 2b07d996cf
133 files changed
+5230 -253310

No files matched your search

+10 -10
View File
@@ -1782,7 +1782,7 @@ test("旧版 LMECHN1 工程会把固定参考端口迁移到动态最大编号",
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const downgraded = await page.evaluate(() => {
const key = Object.keys(localStorage).find((candidate) =>
candidate.startsWith("system-simulation-flow:project:"),
candidate === "system-simulation-flow:autosave",
);
const raw = key ? localStorage.getItem(key) : null;
if (!key || !raw) {
@@ -1848,7 +1848,7 @@ test("旧版 LMECHN1 工程会把固定参考端口迁移到动态最大编号",
.poll(() =>
page.evaluate(() => {
const key = Object.keys(localStorage).find((candidate) =>
candidate.startsWith("system-simulation-flow:project:"),
candidate === "system-simulation-flow:autosave",
);
const raw = key ? localStorage.getItem(key) : null;
const project = raw ? JSON.parse(raw) : null;
@@ -1982,7 +1982,7 @@ test("旧版 FORC 工程会迁移为默认正向且不再依赖图标旋转", as
const downgraded = await page.evaluate(() => {
const key = Object.keys(localStorage).find((candidate) =>
candidate.startsWith("system-simulation-flow:project:"),
candidate === "system-simulation-flow:autosave",
);
const raw = key ? localStorage.getItem(key) : null;
if (!key || !raw) {
@@ -2026,7 +2026,7 @@ test("旧版 FORC 工程会迁移为默认正向且不再依赖图标旋转", as
.poll(() =>
page.evaluate(() => {
const key = Object.keys(localStorage).find((candidate) =>
candidate.startsWith("system-simulation-flow:project:"),
candidate === "system-simulation-flow:autosave",
);
const raw = key ? localStorage.getItem(key) : null;
const project = raw ? JSON.parse(raw) : null;
@@ -2898,7 +2898,7 @@ test("恢复工程时采用当前目录端口并明确丢弃已删除端口的
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const changed = await page.evaluate(() => {
const key = Object.keys(window.localStorage).find((candidate) =>
candidate.startsWith("system-simulation-flow:project:"),
candidate === "system-simulation-flow:autosave",
);
const raw = key ? window.localStorage.getItem(key) : null;
if (!key || !raw) {
@@ -3168,7 +3168,7 @@ test("AMESim canvas nodes use icon anchors and highlight only compatible free po
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const routedEdge = await page.evaluate(() => {
const raw = window.localStorage.getItem(
"system-simulation-flow:project:demo-system",
"system-simulation-flow:autosave",
);
const project = raw ? JSON.parse(raw) : null;
return project?.edges?.[0] ?? null;
@@ -3659,7 +3659,7 @@ test("兼容接口接近时吸附为无连线接触连接,拖开后自动断
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const savedEdge = await page.evaluate(() => {
const raw = window.localStorage.getItem(
"system-simulation-flow:project:demo-system",
"system-simulation-flow:autosave",
);
const project = raw ? JSON.parse(raw) : null;
return project?.edges?.[0] ?? null;
@@ -3823,7 +3823,7 @@ test("信号输出连接后隐藏且拒绝第二条连接", async ({ page }) =>
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const addedLegacyFanOut = await page.evaluate(() => {
const key = "system-simulation-flow:project:demo-system";
const key = "system-simulation-flow:autosave";
const raw = window.localStorage.getItem(key);
if (!raw) {
return false;
@@ -3860,7 +3860,7 @@ test("信号输出连接后隐藏且拒绝第二条连接", async ({ page }) =>
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const normalizedEdgeIds = await page.evaluate(() => {
const raw = window.localStorage.getItem(
"system-simulation-flow:project:demo-system",
"system-simulation-flow:autosave",
);
const project = raw ? JSON.parse(raw) : null;
return (project?.edges ?? []).map((edge: { id?: string }) => edge.id);
@@ -3949,7 +3949,7 @@ test("一次拖动会吸附同一落点内的全部兼容接口", async ({ page
await page.getByRole("button", { name: "保存工程", exact: true }).click();
const savedEndpointKeys = await page.evaluate(() => {
const raw = window.localStorage.getItem(
"system-simulation-flow:project:demo-system",
"system-simulation-flow:autosave",
);
const edges = raw ? (JSON.parse(raw)?.edges ?? []) : [];
return edges.flatMap(