feat: 收口审核指挥台旧入口到 Agent 原型页
This commit is contained in:
@@ -230,9 +230,21 @@ def test_command_center_v2_uses_four_product_entries_as_primary_navigation(clien
|
||||
|
||||
def test_platform_demo_context_uses_agent_product_labels_for_quick_links():
|
||||
context = get_platform_demo_context()
|
||||
titles = [item["title"] for item in context["quick_links"]]
|
||||
quick_links = context["quick_links"]
|
||||
titles = [item["title"] for item in quick_links]
|
||||
|
||||
assert "审核智能体" in titles
|
||||
assert "审核指挥台" in titles
|
||||
assert "审核工作台" not in titles
|
||||
assert "工作台大屏" not in titles
|
||||
assert any(
|
||||
item["title"] == "审核指挥台" and item["url_name"] == "platform_ui:command-center-v2"
|
||||
for item in quick_links
|
||||
)
|
||||
|
||||
|
||||
def test_command_center_legacy_route_redirects_to_v2(client):
|
||||
response = client.get(reverse("platform_ui:command-center"))
|
||||
|
||||
assert response.status_code == 302
|
||||
assert response.url == reverse("platform_ui:command-center-v2")
|
||||
|
||||
Reference in New Issue
Block a user