feat: simplify growth price command panel
This commit is contained in:
@@ -521,6 +521,28 @@ def test_ai_intelligence_template_uses_pchome_growth_name_and_endpoint():
|
||||
assert "今日重點總覽" in template
|
||||
assert "nextActionTitle" in template
|
||||
assert "商品處理進度" in template
|
||||
|
||||
|
||||
def test_growth_analysis_uses_actionable_price_command_panel():
|
||||
from pathlib import Path
|
||||
|
||||
template = Path("templates/growth_analysis.html").read_text(encoding="utf-8")
|
||||
css = Path("web/static/css/page-growth-bem.css").read_text(encoding="utf-8")
|
||||
|
||||
assert "PChome 價格作戰可用度" in template
|
||||
assert "ga-chart-card__body--command" in template
|
||||
assert "ga-competitor-command" in template
|
||||
assert "可直接決策" in template
|
||||
assert "待補 / 待確認" in template
|
||||
assert "下一步" in template
|
||||
assert "前往今日作戰" in template
|
||||
assert "ga-competitor-signal" in css
|
||||
assert "ga-competitor-next" in css
|
||||
assert ".growth-analysis-page .ga-chart-card__body--command" in css
|
||||
assert "比價資料品質" not in template
|
||||
assert "高信心門檻" not in template
|
||||
assert "未知新鮮度" not in template
|
||||
assert "人工否決" not in template
|
||||
assert "價格風險分佈" in template
|
||||
assert "growthActionHint" in template
|
||||
assert "growthDataSourceSummary" in template
|
||||
|
||||
Reference in New Issue
Block a user