Files
gaokao-volunteer-system/admin/tests/test_admin_ui_pages.py
Hermes Agent 9d239fe2c3
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat(t12): harden public checkout and add admin manual order page
2026-06-16 12:16:45 +08:00

18 lines
574 B
Python

from __future__ import annotations
def test_admin_new_order_page_renders(client):
resp = client.get("/admin/orders/new")
assert resp.status_code == 200, resp.text
assert "后台手动添加订单" in resp.text
assert "/api/orders" in resp.text
assert "考试省份" in resp.text
def test_dashboard_exposes_admin_quick_links(client):
resp = client.get("/dashboard")
assert resp.status_code == 200, resp.text
assert "/admin/orders/new" in resp.text
assert "/admin/notifications" in resp.text
assert "/admin/ops-alerts" in resp.text