fix(qa): preserve Telegram module evidence

This commit is contained in:
Dallin Romney
2026-08-06 21:42:02 +08:00
parent 3e1e4bf9a8
commit 9fc8fbdfd8
3 changed files with 5 additions and 7 deletions
@@ -55,7 +55,7 @@ describe("Telegram module scenarios", () => {
command: "help",
expectedAny: ["/new", "/commands for full list"],
}),
).resolves.toContain("/commands for full list");
).resolves.toEqual({ details: "Use /new to start fresh; use /commands for full list." });
expect(reset).toHaveBeenCalledOnce();
expect(sendNativeCommand).toHaveBeenCalledWith({
command: "help",
@@ -44,5 +44,5 @@ export async function runTelegramHelpCommandScenario(
if (!config.expectedAny.every((needle) => reply.text.includes(needle))) {
throw new Error(`Telegram help reply missing expected text: ${reply.text}`);
}
return reply.text;
return { details: reply.text };
}
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { resolveLiveTransportQaScenarioIds } from "./live-transports/shared/scenario-selection.js";
import { resolveTelegramQaScenarioIds } from "./live-transports/telegram/scenario-selection.js";
import {
resolveQaProfileScenarios,
resolveQaRunProfileExecutionSelection,
@@ -53,12 +53,10 @@ describe("taxonomy profile scenario selection", () => {
});
it("derives channel defaults from catalog metadata and lane constraints", () => {
const liveTelegram = resolveLiveTransportQaScenarioIds({
channelId: "telegram",
const liveTelegram = resolveTelegramQaScenarioIds({
providerMode: "live-frontier",
});
const mockTelegram = resolveLiveTransportQaScenarioIds({
channelId: "telegram",
const mockTelegram = resolveTelegramQaScenarioIds({
providerMode: "mock-openai",
});