style: 统一四入口导航当前态与首页入口命名
This commit is contained in:
@@ -161,3 +161,22 @@ def test_base_layout_exposes_four_topnav_links(client):
|
||||
assert reverse("documents:list") in content
|
||||
assert reverse("platform_ui:knowledge-base") in content
|
||||
assert reverse("audit:list") in content
|
||||
|
||||
|
||||
def test_home_page_uses_unified_four_entry_labels(client):
|
||||
response = client.get("/")
|
||||
|
||||
content = response.content.decode("utf-8")
|
||||
assert response.status_code == 200
|
||||
assert "<h3>知识库</h3>" in content
|
||||
assert "<h3>资料包</h3>" in content
|
||||
assert "<h3>审核智能体</h3>" in content
|
||||
assert "<h3>处理历史</h3>" in content
|
||||
|
||||
|
||||
def test_base_layout_marks_current_topnav_entry_active(client, db):
|
||||
response = client.get(reverse("documents:list"))
|
||||
|
||||
content = response.content.decode("utf-8")
|
||||
assert response.status_code == 200
|
||||
assert 'href="/documents/" class="active"' in content
|
||||
|
||||
Reference in New Issue
Block a user