test: skip bot-to-bot telegram mention in default qa · openclaw/openclaw@3367cfa
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
File tree
extensions/qa-lab/src/live-transports/telegram
| Original file line number | Diff line number | Diff line change |
|---|
@@ -336,6 +336,17 @@ describe("telegram live qa runtime", () => {
|
336 | 336 | ).toBe(true); |
337 | 337 | }); |
338 | 338 | |
| 339 | +it("keeps bot-to-bot plain mentions out of the default Telegram live set", () => { |
| 340 | +expect(__testing.findScenario().map((scenario) => scenario.id)).toEqual([ |
| 341 | +"telegram-help-command", |
| 342 | +"telegram-commands-command", |
| 343 | +"telegram-tools-compact-command", |
| 344 | +"telegram-whoami-command", |
| 345 | +"telegram-context-command", |
| 346 | +"telegram-mention-gating", |
| 347 | +]); |
| 348 | +}); |
| 349 | + |
339 | 350 | it("tracks Telegram live coverage against the shared transport contract", () => { |
340 | 351 | expect(__testing.TELEGRAM_QA_STANDARD_SCENARIO_IDS).toEqual([ |
341 | 352 | "canary", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,6 +61,7 @@ type TelegramQaScenarioRun = {
|
61 | 61 | |
62 | 62 | type TelegramQaScenarioDefinition = LiveTransportScenarioDefinition<TelegramQaScenarioId> & { |
63 | 63 | buildRun: (sutUsername: string) => TelegramQaScenarioRun; |
| 64 | +defaultEnabled?: boolean; |
64 | 65 | }; |
65 | 66 | |
66 | 67 | type TelegramObservedMessage = { |
@@ -272,6 +273,7 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
|
272 | 273 | { |
273 | 274 | id: "telegram-mentioned-message-reply", |
274 | 275 | title: "Telegram mentioned message gets a reply", |
| 276 | +defaultEnabled: false, |
275 | 277 | timeoutMs: 45_000, |
276 | 278 | buildRun: (sutUsername) => ({ |
277 | 279 | allowAnySutReply: true, |
@@ -835,10 +837,14 @@ function buildObservedMessagesArtifact(params: {
|
835 | 837 | } |
836 | 838 | |
837 | 839 | function findScenario(ids?: string[]) { |
| 840 | +const scenarios = |
| 841 | +ids && ids.length > 0 |
| 842 | + ? TELEGRAM_QA_SCENARIOS |
| 843 | + : TELEGRAM_QA_SCENARIOS.filter((scenario) => scenario.defaultEnabled !== false); |
838 | 844 | return selectLiveTransportScenarios({ |
839 | 845 | ids, |
840 | 846 | laneLabel: "Telegram", |
841 | | -scenarios: TELEGRAM_QA_SCENARIOS, |
| 847 | + scenarios, |
842 | 848 | }); |
843 | 849 | } |
844 | 850 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。