fix(workbench): suppress unconfigured demo alerts

The not_configured branch previously promoted mock task failures into critical alerts. Return an explicit empty alert source so the exception badge reflects only actionable backend state.
This commit is contained in:
2026-09-24 15:13:14 +08:00
parent 7e969e7e8c
commit a5e5acb03b
5 changed files with 24 additions and 11 deletions
@@ -264,6 +264,14 @@ test("审批动作展示中文参数和证据,viewer 不可审批,冲突后
};
await page.goto("/");
const alertTrigger = page.getByRole("button", {
name: "查看异常处置面板,当前 0 条待复核工况"
}).first();
await expect(alertTrigger).toBeVisible();
await alertTrigger.click();
await expect(page.getByText("当前无待复核工况", { exact: true }).first()).toBeVisible();
await expect(page.getByText("来源:未配置告警源", { exact: true })).toBeVisible();
await page.keyboard.press("Escape");
const reconnectNotice = page.locator("[data-sonner-toast]").filter({
hasText: "业务同步正在重连"
});