预警队列调整为每页十条
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user