预警队列调整为每页十条

This commit is contained in:
zhangshy
2026-09-14 10:40:41 +08:00
parent 54055b4328
commit baecb89bd4
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -296,6 +296,14 @@ def test_risk_tables_show_page_and_total_summary() -> None:
assert "共 ${total} 条" in source
def test_risk_alert_queue_uses_ten_rows_per_page() -> None:
source = (
PORTAL / "employee-risk" / "dashboard" / "dashboard.js"
).read_text(encoding="utf-8")
assert "limit: 10" in source
assert "meta.page_size ?? 10" in source
def test_risk_alert_prompts_hide_until_alert_context_is_bound() -> None:
html = (PORTAL / "employee-risk" / "dashboard" / "index.html").read_text(encoding="utf-8")
css = (PORTAL / "employee-risk" / "dashboard" / "dashboard.css").read_text(encoding="utf-8")