fix: rename crawler UI to product monitoring
All checks were successful
CD Pipeline / deploy (push) Successful in 1m9s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m9s
This commit is contained in:
@@ -169,7 +169,7 @@ def test_market_intel_disabled_page_stays_lightweight_and_action_oriented():
|
||||
assert template_path.stat().st_size < 40000
|
||||
assert "市場情報入口" in template
|
||||
assert "比價覆核" in template
|
||||
assert "PChome 爬蟲" in template
|
||||
assert "PChome 商品監控" in template
|
||||
assert "AI 觀測台" in template
|
||||
assert "system_version" not in template
|
||||
assert "V10." not in template
|
||||
@@ -189,19 +189,36 @@ def test_market_intel_disabled_page_stays_lightweight_and_action_oriented():
|
||||
def test_growth_workflow_pages_hide_raw_export_and_fallback_content():
|
||||
pchome_crawler = (ROOT / "templates/pchome_crawler.html").read_text(encoding="utf-8")
|
||||
market_intel = (ROOT / "templates/market_intel/disabled.html").read_text(encoding="utf-8")
|
||||
settings = (ROOT / "templates/settings.html").read_text(encoding="utf-8")
|
||||
navbar = (ROOT / "templates/components/_navbar.html").read_text(encoding="utf-8")
|
||||
shell = (ROOT / "templates/components/_ewoooc_shell.html").read_text(encoding="utf-8")
|
||||
dashboard_js = (ROOT / "web/static/js/page-dashboard-v2.js").read_text(encoding="utf-8")
|
||||
ai_recommend_js = (ROOT / "web/static/js/page-ai-recommend.js").read_text(encoding="utf-8")
|
||||
|
||||
assert "PChome 商品監控" in pchome_crawler
|
||||
assert "商品清單" in pchome_crawler
|
||||
assert "下載完整清單" in pchome_crawler
|
||||
assert "匯出 JSON" not in pchome_crawler
|
||||
assert "PChome 爬蟲" not in pchome_crawler
|
||||
assert "爬蟲" not in pchome_crawler
|
||||
|
||||
assert "資料狀態" in market_intel
|
||||
assert "PChome 商品監控" in market_intel
|
||||
assert "來源規格" in market_intel
|
||||
assert "手動整理" in market_intel
|
||||
assert "DATA STATUS" not in market_intel
|
||||
assert "Adapter" not in market_intel
|
||||
assert "手動 Fetch" not in market_intel
|
||||
assert "API 不執行推版" not in market_intel
|
||||
assert "PChome 爬蟲" not in market_intel
|
||||
|
||||
assert "商品監控中心" in settings
|
||||
assert "監控來源設定" in settings
|
||||
assert "商品監控" in navbar
|
||||
assert "商品監控狀態" in shell
|
||||
assert "全站商品監控" in dashboard_js
|
||||
for source in (settings, navbar, shell, dashboard_js):
|
||||
assert "爬蟲" not in source
|
||||
|
||||
assert "外部訊號已取得,但尚未整理成可直接判斷的摘要" in ai_recommend_js
|
||||
assert "商品判斷尚未整理成可執行摘要" in ai_recommend_js
|
||||
|
||||
@@ -877,7 +877,7 @@ def test_market_intel_preview_template_uses_safe_fetch_false_endpoint():
|
||||
|
||||
assert "市場情報入口" in template
|
||||
assert "比價覆核" in template
|
||||
assert "PChome 爬蟲" in template
|
||||
assert "PChome 商品監控" in template
|
||||
assert "AI 觀測台" in template
|
||||
assert "市場情報尚未進入正式決策" in template
|
||||
assert "資料狀態" in template
|
||||
|
||||
Reference in New Issue
Block a user