feat(dashboard): 顯示 PChome 比價決策總覽
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
OoO
2026-05-01 14:19:18 +08:00
parent fbc85fcedc
commit 1012d609d4
7 changed files with 439 additions and 48 deletions

View File

@@ -47,8 +47,17 @@ def test_dashboard_v2_is_production_default_and_uses_real_dashboard_data():
assert "request.args.get('ui') == 'legacy'" in route_source
assert "template_name = 'dashboard.html' if request.args.get('ui') == 'legacy' else 'dashboard_v2.html'" in route_source
assert "get_full_dashboard_data()" in route_source
assert "_load_competitor_decision_overview(session)" in route_source
assert "ai_price_recommendations" in route_source
assert "pending_match_count" in route_source
assert "MockRecord" not in route_source
assert "{% for item in items %}" in dashboard
assert "比價監控總覽" in dashboard
assert "比價決策焦點" in dashboard
assert "overview.match_rate" in dashboard
assert "overview.top_picks" in dashboard
assert "overview.top_momo_threats" in dashboard
assert "overview.pending_priority" in dashboard
assert "ui='v2'" not in dashboard
assert 'name="ui" value="v2"' not in dashboard
assert "mockProducts" not in dashboard