test(dashboard): cover shared loading overlay

This commit is contained in:
caoxiaozhu
2026-06-03 09:45:06 +08:00
parent d060f89d30
commit faa39e6c06
2 changed files with 3 additions and 8 deletions

View File

@@ -125,8 +125,10 @@ test('risk dashboard wires window filter to trend, ranking, and cards data sourc
test('risk dashboard shows loading overlay and realtime refresh status', () => {
assert.match(overviewTemplate, /dashboard-loading-overlay/)
assert.match(overviewTemplate, /TableLoadingState/)
assert.match(overviewTemplate, /activeDashboardLoadingText/)
assert.match(dashboardComponent, /risk-dashboard-loading-overlay/)
assert.match(dashboardComponent, /TableLoadingState/)
assert.match(dashboardComponent, /loadingLabel/)
assert.match(dashboardComponent, /lastUpdatedLabel/)
assert.match(dashboardComponent, /lastUpdatedAt/)