fix: 优化报告未生成时的导出提示

This commit is contained in:
meijiali
2026-07-03 18:02:01 +08:00
parent d6f0f7c1b0
commit 61bcb2ef86
4 changed files with 32 additions and 0 deletions
+4
View File
@@ -312,9 +312,13 @@ def test_report_pages_render_empty_state_when_report_missing():
assert hotspot_response.status_code == 200
assert "报告生成中,请稍候" in hotspot_response.text
assert 'title="报告尚未生成"' in hotspot_response.text
assert "Markdown 报告将在分析完成后开放下载" in hotspot_response.text
assert "downloadExport('/api/export/hotspots/hot-no-report/comments.csv'" in hotspot_response.text
assert item_response.status_code == 200
assert "报告生成中,请稍候" in item_response.text
assert 'title="报告尚未生成"' in item_response.text
assert "Markdown 报告将在分析完成后开放下载" in item_response.text
assert "downloadExport('/api/export/items/item-no-report/comments.csv'" in item_response.text
def test_report_pages_warn_when_ai_sample_is_insufficient():