Skip to content

Commit 3367cfa

Browse files
committed
test: skip bot-to-bot telegram mention in default qa
1 parent 885d88c commit 3367cfa

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎extensions/qa-lab/src/live-transports/telegram/telegram-live.runtime.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,17 @@ describe("telegram live qa runtime", () => {
336336
).toBe(true);
337337
});
338338

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+
339350
it("tracks Telegram live coverage against the shared transport contract", () => {
340351
expect(__testing.TELEGRAM_QA_STANDARD_SCENARIO_IDS).toEqual([
341352
"canary",

‎extensions/qa-lab/src/live-transports/telegram/telegram-live.runtime.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ type TelegramQaScenarioRun = {
6161

6262
type TelegramQaScenarioDefinition = LiveTransportScenarioDefinition<TelegramQaScenarioId> & {
6363
buildRun: (sutUsername: string) => TelegramQaScenarioRun;
64+
defaultEnabled?: boolean;
6465
};
6566

6667
type TelegramObservedMessage = {
@@ -272,6 +273,7 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
272273
{
273274
id: "telegram-mentioned-message-reply",
274275
title: "Telegram mentioned message gets a reply",
276+
defaultEnabled: false,
275277
timeoutMs: 45_000,
276278
buildRun: (sutUsername) => ({
277279
allowAnySutReply: true,
@@ -835,10 +837,14 @@ function buildObservedMessagesArtifact(params: {
835837
}
836838

837839
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);
838844
return selectLiveTransportScenarios({
839845
ids,
840846
laneLabel: "Telegram",
841-
scenarios: TELEGRAM_QA_SCENARIOS,
847+
scenarios,
842848
});
843849
}
844850

0 commit comments

Comments
 (0)