feat: 增加本地演示流程与网页DOM能力
这个提交包含在:
1 父节点
d4799a4285
当前提交
6adf772987
19 个文件已更改
+642
-9
没有与搜索条件相匹配的文件
+11
-1
@@ -11,7 +11,7 @@ vi.mock("electron", () => ({
|
||||
}
|
||||
}));
|
||||
|
||||
import { createFlow, listFlows, saveFlow } from "./flows";
|
||||
import { createDemoFlow, createFlow, listFlows, saveFlow } from "./flows";
|
||||
|
||||
describe("flow summaries", () => {
|
||||
beforeEach(async () => {
|
||||
@@ -45,4 +45,14 @@ describe("flow summaries", () => {
|
||||
lastRunError: "测试失败原因"
|
||||
}));
|
||||
});
|
||||
|
||||
it("creates a connected local browser demo flow", () => {
|
||||
const flow = createDemoFlow("http://127.0.0.1:17863/");
|
||||
expect(flow.name).toBe("本地网页订单演示");
|
||||
expect(flow.nodes.map((node) => node.componentId)).toEqual([
|
||||
"Trigger.Manual", "WebBrowser_CreateV3", "Element_SetValue_V6", "Element_SetValue_V6", "Element_Click_V6", "Element_GetText_V5"
|
||||
]);
|
||||
expect(flow.edges).toHaveLength(5);
|
||||
expect(flow.nodes.find((node) => node.id === "node_result")?.options.outputVar).toBe("订单结果");
|
||||
});
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户