mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
test(release): align beta2 validation expectations
This commit is contained in:
parent
b8108e4794
commit
87b40c7160
4 changed files with 8 additions and 12 deletions
|
|
@ -402,13 +402,6 @@ describe("dispatchTelegramMessage draft streaming", () => {
|
|||
return { text: html, parseMode: "HTML" as const };
|
||||
}
|
||||
|
||||
function telegramProgressPreview(text: string, html: string) {
|
||||
return {
|
||||
text,
|
||||
richMessage: { html: html.replaceAll("\n", "<br>"), skip_entity_detection: true },
|
||||
};
|
||||
}
|
||||
|
||||
function createContext(overrides?: Partial<TelegramMessageContext>): TelegramMessageContext {
|
||||
const base = {
|
||||
ctxPayload: {},
|
||||
|
|
@ -2637,10 +2630,7 @@ describe("dispatchTelegramMessage draft streaming", () => {
|
|||
expect(lastUpdate?.text).toContain("install dependencies");
|
||||
expect(lastUpdate?.text).not.toContain("completed");
|
||||
expect(lastUpdate).toEqual(
|
||||
telegramProgressPreview(
|
||||
"Shelling\n\n🛠️ install dependencies",
|
||||
"<b>Shelling</b>\n<b>🛠️ Exec</b> <code>install dependencies</code>",
|
||||
),
|
||||
telegramHtmlPreview("<b>Shelling</b><br><b>🛠️ Exec</b> <code>install dependencies</code>"),
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ describe("runEmbeddedAgent fast auto progress", () => {
|
|||
model: "glm-5.1:cloud",
|
||||
runId: `run-fast-auto-off-${failureTarget}`,
|
||||
fastMode: "auto",
|
||||
timeoutMs: 120_000,
|
||||
onAgentEvent: (event) => {
|
||||
events.push(event);
|
||||
const summary = event.data?.summary;
|
||||
|
|
@ -350,6 +351,7 @@ describe("runEmbeddedAgent fast auto progress", () => {
|
|||
model: "glm-5.1:cloud",
|
||||
runId: `run-fast-auto-reset-${failureTarget}`,
|
||||
fastMode: "auto",
|
||||
timeoutMs: 120_000,
|
||||
onAgentEvent: (event) => {
|
||||
events.push(event);
|
||||
if (failureTarget === "agent-event" && event.data?.summary === "💨Fast: auto-on") {
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ describe("Outcome/fallback runtime contract - embedded runtime fallback classifi
|
|||
expect(run.mock.calls.at(1)).toEqual([
|
||||
OUTCOME_FALLBACK_RUNTIME_CONTRACT.fallbackProvider,
|
||||
OUTCOME_FALLBACK_RUNTIME_CONTRACT.fallbackModel,
|
||||
{ isFinalFallbackAttempt: true },
|
||||
]);
|
||||
expect(result.attempts[0]?.provider).toBe(OUTCOME_FALLBACK_RUNTIME_CONTRACT.primaryProvider);
|
||||
expect(result.attempts[0]?.model).toBe(OUTCOME_FALLBACK_RUNTIME_CONTRACT.primaryModel);
|
||||
|
|
|
|||
|
|
@ -103,7 +103,10 @@ describe("createChannelProgressDraftCompositor", () => {
|
|||
allowAfterFinal: true,
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(update).toHaveBeenCalledWith("Shelling\n\n💨Fast: auto-on", { flush: true });
|
||||
expect(update).toHaveBeenCalledWith("Shelling\n\n💨Fast: auto-on", {
|
||||
flush: true,
|
||||
lines: ["💨Fast: auto-on"],
|
||||
});
|
||||
});
|
||||
|
||||
it("composes reasoning deltas with tool progress", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue