mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
fix(qa): preserve Telegram module evidence
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user