test(release): align beta2 validation expectations

This commit is contained in:
Vincent Koc 2026-06-22 16:11:19 +08:00
parent b8108e4794
commit 87b40c7160
No known key found for this signature in database
4 changed files with 8 additions and 12 deletions

View file

@ -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>"),
);
});

View file

@ -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") {

View file

@ -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);

View file

@ -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 () => {