完善建模交互、组件图标与系统协议
This commit is contained in:
1 parent
456c29b3b6
commit
6572defaa4
66 files changed
+10067
-4163
No files matched your search
@@ -1,5 +1,15 @@
|
||||
import { expect, type Page } from "@playwright/test";
|
||||
|
||||
export async function expandSimulationConsole(page: Page) {
|
||||
const expandButton = page.getByRole("button", {
|
||||
name: "展开仿真控制台",
|
||||
exact: true,
|
||||
});
|
||||
if ((await expandButton.count()) > 0) {
|
||||
await expandButton.click();
|
||||
}
|
||||
}
|
||||
|
||||
const physicalPort = (
|
||||
name: string,
|
||||
side: "left" | "right",
|
||||
@@ -73,6 +83,15 @@ const ud00StageParameterNames = Array.from(
|
||||
export const componentCatalog = {
|
||||
schemaVersion: 1,
|
||||
libraries: [
|
||||
{
|
||||
id: "experimental",
|
||||
label: "临时测试组件库",
|
||||
version: "0.1.0",
|
||||
sourcePackage: "tests.e2e.experimental",
|
||||
temporary: true,
|
||||
order: 100,
|
||||
components: [],
|
||||
},
|
||||
{
|
||||
id: "e2e-library",
|
||||
label: "自动化测试组件库",
|
||||
@@ -323,7 +342,7 @@ export const componentCatalog = {
|
||||
type: "amesim_mecmas21",
|
||||
label: "MECMAS21 编码测试元件",
|
||||
modelType: "amesim_mecmas21",
|
||||
modelVersion: "1.0.0",
|
||||
modelVersion: "0.2.0",
|
||||
symbol: "symbol-not-registered",
|
||||
order: 6,
|
||||
category: {
|
||||
@@ -868,6 +887,7 @@ const projectPort = (
|
||||
});
|
||||
|
||||
export const wideProject = {
|
||||
projectSchemaVersion: 1,
|
||||
name: "demo-system",
|
||||
nodes: Array.from({ length: 4 }, (_, index) => ({
|
||||
id: `generic_sensor_${index + 1}`,
|
||||
@@ -880,6 +900,7 @@ export const wideProject = {
|
||||
label: `generic_sensor_${index + 1}`,
|
||||
componentType: "generic_sensor",
|
||||
modelType: "generic_sensor",
|
||||
modelVersion: "1.0.0",
|
||||
symbol: "symbol-not-registered",
|
||||
ports: [
|
||||
projectPort("port_a", "left", "bidirectional"),
|
||||
@@ -897,6 +918,7 @@ export const wideProject = {
|
||||
target: `generic_sensor_${index + 2}`,
|
||||
sourceHandle: "port_b",
|
||||
targetHandle: "port_a",
|
||||
data: { isContactEdge: false },
|
||||
})),
|
||||
simulation: {
|
||||
t_start: 0,
|
||||
|
||||
Reference in new issue
Block a user