fix: update dashboard test for new layout

This commit is contained in:
tian 2026-05-08 13:00:51 +08:00
parent c7da7c2290
commit bcd5da575e

View File

@ -3667,7 +3667,7 @@ func TestUI_DashboardShowsGlobalOperationsSummary(t *testing.T) {
ui := newTestUI(t)
html := renderPage(t, ui, "/ui/dashboard")
for _, text := range []string{"全局 KPI", "在线率", "最近任务", "异常设备"} {
for _, text := range []string{"在线率", "最近任务", "异常设备", "设备总数"} {
if !strings.Contains(html, text) {
t.Fatalf("expected dashboard text %q in html: %s", text, html)
}