test: skip bot-to-bot telegram mention in default qa

This commit is contained in:
Peter Steinberger
2026-04-29 07:39:05 +01:00
parent 885d88c1ac
commit 3367cfaa14
2 changed files with 18 additions and 1 deletions

View File

@@ -336,6 +336,17 @@ describe("telegram live qa runtime", () => {
).toBe(true);
});
it("keeps bot-to-bot plain mentions out of the default Telegram live set", () => {
expect(__testing.findScenario().map((scenario) => scenario.id)).toEqual([
"telegram-help-command",
"telegram-commands-command",
"telegram-tools-compact-command",
"telegram-whoami-command",
"telegram-context-command",
"telegram-mention-gating",
]);
});
it("tracks Telegram live coverage against the shared transport contract", () => {
expect(__testing.TELEGRAM_QA_STANDARD_SCENARIO_IDS).toEqual([
"canary",

View File

@@ -61,6 +61,7 @@ type TelegramQaScenarioRun = {
type TelegramQaScenarioDefinition = LiveTransportScenarioDefinition<TelegramQaScenarioId> & {
buildRun: (sutUsername: string) => TelegramQaScenarioRun;
defaultEnabled?: boolean;
};
type TelegramObservedMessage = {
@@ -272,6 +273,7 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
{
id: "telegram-mentioned-message-reply",
title: "Telegram mentioned message gets a reply",
defaultEnabled: false,
timeoutMs: 45_000,
buildRun: (sutUsername) => ({
allowAnySutReply: true,
@@ -835,10 +837,14 @@ function buildObservedMessagesArtifact(params: {
}
function findScenario(ids?: string[]) {
const scenarios =
ids && ids.length > 0
? TELEGRAM_QA_SCENARIOS
: TELEGRAM_QA_SCENARIOS.filter((scenario) => scenario.defaultEnabled !== false);
return selectLiveTransportScenarios({
ids,
laneLabel: "Telegram",
scenarios: TELEGRAM_QA_SCENARIOS,
scenarios,
});
}