fix(telegram): label buttons by verified outcome

This commit is contained in:
ogt
2026-07-17 00:15:20 +08:00
parent fb2b11c1d5
commit 798227859d
5 changed files with 46 additions and 41 deletions

View File

@@ -125,8 +125,8 @@ async def test_controlled_automation_keyboard_has_no_approval_buttons() -> None:
assert "✅ 批准" not in button_texts
assert "❌ 拒絕" not in button_texts
assert "🧰 處置包" in button_texts
assert "📊 歷史" in button_texts
assert "🧰 AI 處置證據" in button_texts
assert "📈 復發趨勢" in button_texts
def _approval_record(*, action: str, risk_level: RiskLevel) -> SimpleNamespace: