diff --git a/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.test.ts b/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.test.ts index 4bd832aea3c5..284e2b55140f 100644 --- a/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.test.ts +++ b/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.test.ts @@ -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", diff --git a/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.ts b/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.ts index e34a61b0cf5b..33d66aabd860 100644 --- a/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.ts +++ b/extensions/qa-lab/src/live-transports/telegram/scenario-runtime.ts @@ -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 }; } diff --git a/extensions/qa-lab/src/profile-selection.test.ts b/extensions/qa-lab/src/profile-selection.test.ts index 7d45e70842fc..d11959be2fe0 100644 --- a/extensions/qa-lab/src/profile-selection.test.ts +++ b/extensions/qa-lab/src/profile-selection.test.ts @@ -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", });