feat(workbench): integrate operational workflows and map state

This commit is contained in:
2026-09-24 04:34:46 +08:00
parent 1752b9ef84
commit 436d5500f1
76 changed files with 5081 additions and 1937 deletions
+17 -2
View File
@@ -196,6 +196,18 @@ test("stream completion and the plan card remain positionally stable", async ({
);
await page.route("https://stream-map.invalid/**", (route) => route.fulfill({ status: 204 }));
await page.route("**/api/v1/agent/chat/**", async (route) => {
if (route.request().method() === "OPTIONS") {
await route.fulfill({
status: 204,
headers: {
"Access-Control-Allow-Headers": "Authorization, Content-Type, X-Project-Id",
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
"Access-Control-Allow-Origin": "*"
}
});
return;
}
const path = new URL(route.request().url()).pathname;
if (path.endsWith("/stream")) {
@@ -219,7 +231,10 @@ test("stream completion and the plan card remain positionally stable", async ({
? { sessions: [] }
: {};
await route.fulfill({ json: body });
await route.fulfill({
headers: { "Access-Control-Allow-Origin": "*" },
json: body
});
});
await page.goto("/", { waitUntil: "domcontentloaded" });
@@ -227,7 +242,7 @@ test("stream completion and the plan card remain positionally stable", async ({
await expect(
page.getByRole("button", { name: "选择 Agent 模型" }).filter({ visible: true }).first()
).toContainText("测试模型");
).toContainText("测试模型", { timeout: 10_000 });
const prompt = page
.getByPlaceholder(/输入调度问题/)
.filter({ visible: true })