fix: hide raw import errors in UI
All checks were successful
CD Pipeline / deploy (push) Successful in 1m6s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -734,6 +734,8 @@ def test_utility_pages_keep_operator_copy_professional():
|
||||
assert "簡報線上預覽" in ppt_preview
|
||||
assert "下載簡報檔" in ppt_history
|
||||
assert "送出後更新日報、成長分析與今日作戰清單" in auto_import
|
||||
assert "等待系統更新任務狀態;若重複停在異常" in auto_import
|
||||
assert "return raw ||" not in auto_import
|
||||
assert "缺少必要資料時,會先停止匯入" in stockout_import
|
||||
assert "先選擇供應商缺貨 Excel 檔。" in vendor_import_js
|
||||
assert "使用情境" in ai_calls
|
||||
@@ -750,6 +752,9 @@ def test_utility_pages_keep_operator_copy_professional():
|
||||
assert "健康檢查服務" in ai_automation
|
||||
assert "上線證據" in code_review
|
||||
assert "資料服務" in login
|
||||
system_settings = (ROOT / "templates/system_settings.html").read_text(encoding="utf-8")
|
||||
assert "系統操作暫時沒有完成,請稍後重試" in system_settings
|
||||
assert "return raw;" not in system_settings
|
||||
|
||||
forbidden = [
|
||||
"工作視窗",
|
||||
@@ -791,6 +796,11 @@ def test_utility_pages_keep_operator_copy_professional():
|
||||
"Commit:",
|
||||
"變更檔案:",
|
||||
"查看系統日誌",
|
||||
"could not locate runnable browser",
|
||||
"daily_sales_snapshot",
|
||||
"realtime_sales_monthly",
|
||||
"snapshot_date",
|
||||
"psycopg2",
|
||||
]
|
||||
for marker in forbidden:
|
||||
assert marker not in combined
|
||||
|
||||
Reference in New Issue
Block a user