mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
test: skip bot-to-bot telegram mention in default qa
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user