| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784 |
- import { describe, expect, it } from "vitest";
- import {
- getZCodeGoalActiveIterationCount,
- getZCodeGoalIterationByAssistantMessageId,
- getZCodeUserVisibleMessages,
- getConversationMessageProjectionPolicy,
- getConversationModelOnlyTurnTriggerSource,
- isZCodeModelOnlySyntheticUserMessage,
- resolveZCodeVisibleSessionTitle,
- type ZCodeMessagePart,
- type ZCodeMessageWithParts,
- } from "../src/index.js";
- const model = {
- providerId: "glm",
- modelId: "glm-4.6",
- };
- type ZCodeUserMessageInfo = Extract<ZCodeMessageWithParts["info"], { role: "user" }>;
- type ZCodeUserMessageInfoPatch = Partial<
- Pick<
- ZCodeUserMessageInfo,
- "metadata" | "semantics" | "source" | "synthetic" | "time" | "visibility"
- >
- >;
- function userMessage(
- messageId: string,
- text: string,
- partPatch: Partial<Extract<ZCodeMessagePart, { type: "text" }>> = {},
- createdAt = 1,
- infoPatch: ZCodeUserMessageInfoPatch = {},
- ): ZCodeMessageWithParts {
- const part: Extract<ZCodeMessagePart, { type: "text" }> = {
- partId: `part_${messageId}`,
- sessionId: "sess_1",
- messageId,
- type: "text",
- text,
- ...partPatch,
- };
- return {
- info: {
- messageId,
- sessionId: "sess_1",
- role: "user",
- time: { created: createdAt },
- agent: "zcode-agent",
- model,
- ...infoPatch,
- },
- parts: [part],
- };
- }
- function assistantMessage(
- messageId: string,
- text: string,
- createdAt: number,
- ): ZCodeMessageWithParts {
- return {
- info: {
- messageId,
- sessionId: "sess_1",
- role: "assistant",
- time: { created: createdAt, completed: createdAt + 10 },
- agent: "zcode-agent",
- model,
- path: { cwd: "/workspace/app", root: "/workspace/app" },
- cost: 0,
- tokens: {
- input: 1,
- output: 1,
- reasoning: 0,
- total: 2,
- cache: { read: 0, write: 0 },
- },
- },
- parts: [
- {
- partId: `part_${messageId}`,
- sessionId: "sess_1",
- messageId,
- type: "text",
- text,
- },
- ],
- };
- }
- describe("ZCode session visible content", () => {
- it("only advances failed verifier iteration counts for active goals", () => {
- const failedTimeline = [
- {
- goalIteration: 1,
- status: "completed" as const,
- verification: {
- nextAction: "继续下一轮。",
- passed: false,
- reason: "目标还没完成。",
- },
- },
- ];
- const cancelledTimeline = [
- {
- goalIteration: 1,
- status: "cancelled" as const,
- },
- ];
- expect(
- getZCodeGoalActiveIterationCount({
- targetStatus: "active",
- timeline: failedTimeline,
- }),
- ).toBe(2);
- expect(
- getZCodeGoalActiveIterationCount({
- targetStatus: "paused",
- timeline: cancelledTimeline,
- }),
- ).toBe(1);
- });
- it("filters background task notifications from user-visible messages", () => {
- const realUserMessage = userMessage("msg_real", "继续总结结果");
- const notification = userMessage(
- "msg_background",
- [
- "<task-notification>",
- " <task-id>exec_bg</task-id>",
- " <status>completed</status>",
- "</task-notification>",
- ].join("\n"),
- {
- synthetic: true,
- metadata: { source: "background_task" },
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(notification)).toBe(true);
- expect(getZCodeUserVisibleMessages([realUserMessage, notification])).toEqual([realUserMessage]);
- });
- it("filters legacy synthetic task notification text without metadata", () => {
- const notification = userMessage(
- "msg_legacy_background",
- "<task-notification>\n <status>completed</status>\n</task-notification>",
- {
- synthetic: true,
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(notification)).toBe(true);
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("filters compact summary user messages from user-visible messages", () => {
- const summary: ZCodeMessageWithParts = {
- info: {
- messageId: "msg_summary",
- sessionId: "sess_1",
- role: "user",
- time: { created: 10 },
- agent: "zcode-agent",
- model,
- },
- parts: [
- {
- partId: "part_summary",
- sessionId: "sess_1",
- messageId: "msg_summary",
- type: "compaction",
- auto: false,
- metadata: {
- operationId: "cmp-summary",
- phase: "standalone_turn",
- trigger: "manual",
- },
- },
- ],
- };
- expect(getZCodeUserVisibleMessages([summary])).toEqual([]);
- });
- it("filters background subagent notifications from user-visible messages", () => {
- const notification = userMessage(
- "msg_subagent_background",
- "<subagent-notification>\nAgent Explore task completed.\n</subagent-notification>",
- {
- synthetic: true,
- metadata: { source: "subagent" },
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(notification)).toBe(true);
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("filters canonical and source-only subagent messages from visible content and titles", () => {
- const canonical = userMessage(
- "msg_subagent_message_canonical",
- "internal canonical response",
- { synthetic: true },
- 1,
- {
- source: "subagent_message",
- synthetic: true,
- visibility: "model-only",
- },
- );
- const infoSourceOnly = userMessage(
- "msg_subagent_message_info_source",
- "internal info source response",
- { synthetic: true },
- 2,
- { source: "subagent_message", synthetic: true },
- );
- const partSourceOnly = userMessage(
- "msg_subagent_message_part_source",
- "internal part source response",
- {
- synthetic: true,
- metadata: { source: "subagent_message" },
- },
- 3,
- { synthetic: true },
- );
- const realUserMessage = userMessage("msg_real_after_subagent_message", "真实用户问题", {}, 4);
- expect(
- getZCodeUserVisibleMessages([canonical, infoSourceOnly, partSourceOnly, realUserMessage]),
- ).toEqual([realUserMessage]);
- expect(
- resolveZCodeVisibleSessionTitle({
- messages: [infoSourceOnly, partSourceOnly, realUserMessage],
- target: null,
- }),
- ).toBe("真实用户问题");
- });
- it("classifies subagent_message as one provider-context model-only turn trigger", () => {
- const sourceOnly = userMessage(
- "msg_subagent_message_turn_trigger",
- "internal coordinator response",
- { synthetic: true, metadata: { source: "subagent_message" } },
- 1,
- { source: "subagent_message", synthetic: true },
- );
- expect(getConversationMessageProjectionPolicy(sourceOnly)).toBe("providerContextOnly");
- expect(getConversationModelOnlyTurnTriggerSource(sourceOnly)).toBe("subagent_message");
- });
- it("keeps persisted plugin references in provider context without creating a UI turn", () => {
- const pluginReference = userMessage(
- "msg_plugin_reference",
- "<plugin_reference>demo</plugin_reference>",
- { synthetic: true, metadata: { source: "plugin_reference" } },
- 1,
- {
- source: "plugin_reference",
- synthetic: true,
- visibility: "model-only",
- },
- );
- expect(getConversationMessageProjectionPolicy(pluginReference)).toBe("providerContextOnly");
- expect(isZCodeModelOnlySyntheticUserMessage(pluginReference)).toBe(true);
- expect(getConversationModelOnlyTurnTriggerSource(pluginReference)).toBeNull();
- expect(getZCodeUserVisibleMessages([pluginReference])).toEqual([]);
- });
- it("uses the target fallback when a subagent message is the only user-like input", () => {
- const sourceOnly = userMessage(
- "msg_subagent_message_target_fallback",
- "internal response must not become the title",
- { synthetic: true, metadata: { source: "subagent_message" } },
- 1,
- { synthetic: true },
- );
- expect(
- resolveZCodeVisibleSessionTitle({
- messages: [sourceOnly],
- target: {
- createdAt: 1,
- objective: "完成权限链路检查",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_subagent_message",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 1,
- },
- }),
- ).toBe("完成权限链路检查");
- });
- it("filters rewind notices from user-visible messages", () => {
- const notification = userMessage(
- "msg_rewind",
- [
- "<system-reminder>",
- "Conversation rewind applied.",
- "Continue from the conversation state before the target user message.",
- "</system-reminder>",
- ].join("\n"),
- {
- synthetic: true,
- metadata: { source: "rewind" },
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(notification)).toBe(true);
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("filters model-only goal continuation reminders from user-visible messages", () => {
- const realUserMessage = userMessage("msg_real_goal", "加一个地址系统,可以加,可以选");
- const continuation = userMessage(
- "msg_goal_continuation",
- [
- '<system-reminder source="goal-continuation">',
- "Continue working toward the active session goal.",
- "</system-reminder>",
- ].join("\n"),
- {
- synthetic: true,
- metadata: {
- source: "goal-continuation",
- visibility: "model-only",
- },
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(continuation)).toBe(true);
- expect(getZCodeUserVisibleMessages([realUserMessage, continuation])).toEqual([realUserMessage]);
- });
- it("filters model-only goal state change reminders from user-visible messages", () => {
- const realUserMessage = userMessage("msg_real_goal_state", "继续做目标");
- const reminder = userMessage(
- "msg_goal_state_change",
- "The active session goal is paused. Do not continue pursuing it unless the user resumes or replaces the goal.",
- {
- synthetic: true,
- metadata: { source: "goal_state_change" },
- },
- 2,
- {
- synthetic: true,
- source: "goal_state_change",
- },
- );
- expect(isZCodeModelOnlySyntheticUserMessage(reminder)).toBe(true);
- expect(getZCodeUserVisibleMessages([realUserMessage, reminder])).toEqual([realUserMessage]);
- });
- it("filters legacy goal continuation reminders without metadata", () => {
- const continuation = userMessage(
- "msg_legacy_goal_continuation",
- [
- '<system-reminder source="goal-continuation">',
- "<untrusted_objective>",
- "优化性能到 60fps",
- "</untrusted_objective>",
- "</system-reminder>",
- ].join("\n"),
- );
- expect(isZCodeModelOnlySyntheticUserMessage(continuation)).toBe(true);
- expect(getZCodeUserVisibleMessages([continuation])).toEqual([]);
- expect(
- resolveZCodeVisibleSessionTitle({
- messages: [continuation],
- target: {
- createdAt: 1,
- objective: "优化性能到 60fps",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 1,
- },
- }),
- ).toBe("优化性能到 60fps");
- });
- it("does not count current goal state reminders as a new goal iteration", () => {
- const continuation = userMessage(
- "msg_goal_continuation",
- [
- "<system-reminder>",
- "Continue working toward the active session goal.",
- "</system-reminder>",
- ].join("\n"),
- { synthetic: true },
- 100,
- {
- synthetic: true,
- visibility: "model-only",
- metadata: { visibility: "model-only" },
- },
- );
- const firstAssistant = assistantMessage("msg_goal_assistant_1", "第一段。", 200);
- const stateReminder = userMessage(
- "msg_goal_state",
- [
- "<system-reminder>",
- "Current session goal state (authoritative):",
- "Status: active",
- "</system-reminder>",
- ].join("\n"),
- { synthetic: true },
- 300,
- {
- synthetic: true,
- visibility: "model-only",
- metadata: { visibility: "model-only" },
- },
- );
- const followupAssistant = assistantMessage(
- "msg_goal_assistant_1_followup",
- "继续第一轮。",
- 400,
- );
- expect(isZCodeModelOnlySyntheticUserMessage(stateReminder)).toBe(true);
- const iterations = getZCodeGoalIterationByAssistantMessageId(
- [continuation, firstAssistant, stateReminder, followupAssistant],
- {
- target: {
- createdAt: 100,
- objective: "优化性能到 60fps",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 100,
- },
- },
- );
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- expect(iterations.get("msg_goal_assistant_1_followup")).toBe(1);
- });
- it("does not double count a visible goal input followed by a model-only continuation", () => {
- const visibleGoalInput = userMessage("msg_visible_goal", "增加单测覆盖率,直到 90%", {}, 101);
- const continuation = userMessage(
- "msg_goal_continuation",
- [
- '<system-reminder source="goal-continuation">',
- "Continue working toward the active session goal.",
- "</system-reminder>",
- ].join("\n"),
- { synthetic: true },
- 102,
- {
- synthetic: true,
- source: "goal-continuation",
- visibility: "model-only",
- metadata: { source: "goal-continuation", visibility: "model-only" },
- },
- );
- const assistant = assistantMessage("msg_goal_assistant_1", "第一轮。", 200);
- const iterations = getZCodeGoalIterationByAssistantMessageId(
- [visibleGoalInput, continuation, assistant],
- {
- target: {
- createdAt: 100,
- objective: "增加单测覆盖率,直到 90%",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 100,
- },
- },
- );
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- });
- it("uses a visible goal input as a fallback boundary when continuation is absent", () => {
- const visibleGoalInput = userMessage("msg_visible_goal", "增加单测覆盖率,直到 90%", {}, 101);
- const assistant = assistantMessage("msg_goal_assistant_1", "第一轮。", 200);
- const iterations = getZCodeGoalIterationByAssistantMessageId([visibleGoalInput, assistant], {
- target: {
- createdAt: 100,
- objective: "增加单测覆盖率,直到 90%",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 100,
- },
- });
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- });
- it("caps assistant display iteration by verified goal iteration count", () => {
- const firstContinuation = userMessage(
- "msg_goal_continuation_1",
- [
- '<system-reminder source="goal-continuation">',
- "Continue working toward the active session goal.",
- "</system-reminder>",
- ].join("\n"),
- { synthetic: true },
- 102,
- {
- synthetic: true,
- source: "goal-continuation",
- visibility: "model-only",
- metadata: { source: "goal-continuation", visibility: "model-only" },
- },
- );
- const firstAssistant = assistantMessage("msg_goal_assistant_1", "第一轮。", 200);
- const secondContinuation = userMessage(
- "msg_goal_continuation_2",
- [
- '<system-reminder source="goal-continuation">',
- "Continue working toward the active session goal.",
- "</system-reminder>",
- ].join("\n"),
- { synthetic: true },
- 300,
- {
- synthetic: true,
- source: "goal-continuation",
- visibility: "model-only",
- metadata: { source: "goal-continuation", visibility: "model-only" },
- },
- );
- const secondAssistant = assistantMessage("msg_goal_assistant_2", "继续处理。", 400);
- const iterations = getZCodeGoalIterationByAssistantMessageId(
- [firstContinuation, firstAssistant, secondContinuation, secondAssistant],
- {
- maxGoalIteration: 1,
- target: {
- createdAt: 100,
- objective: "增加单测覆盖率,直到 90%",
- sessionId: "sess_1",
- status: "active",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 100,
- },
- },
- );
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- expect(iterations.get("msg_goal_assistant_2")).toBe(1);
- });
- it("does not assign completed goal iteration to follow-up assistant replies", () => {
- const visibleGoalInput = userMessage("msg_visible_goal", "把重连恢复修好", {}, 101);
- const goalAssistant = assistantMessage("msg_goal_assistant_1", "第一轮已完成。", 200);
- const followupUser = userMessage("msg_followup_user", "你刚刚的方案是什么?", {}, 400);
- const followupAssistant = assistantMessage(
- "msg_followup_assistant",
- "刚刚的方案是先补边界测试。",
- 500,
- );
- const iterations = getZCodeGoalIterationByAssistantMessageId(
- [visibleGoalInput, goalAssistant, followupUser, followupAssistant],
- {
- maxGoalIteration: 1,
- target: {
- createdAt: 100,
- objective: "把重连恢复修好",
- sessionId: "sess_1",
- status: "complete",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 300,
- },
- },
- );
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- expect(iterations.get("msg_followup_assistant")).toBeUndefined();
- });
- it("does not assign paused goal iteration to follow-up assistant replies", () => {
- const visibleGoalInput = userMessage("msg_visible_goal", "把停止目标修好", {}, 101);
- const goalAssistant = assistantMessage("msg_goal_assistant_1", "第一轮被停止。", 200);
- const followupUser = userMessage("msg_followup_user", "nihao", {}, 400);
- const followupAssistant = assistantMessage(
- "msg_followup_assistant",
- "你好!有什么我可以帮你的吗?",
- 500,
- );
- const iterations = getZCodeGoalIterationByAssistantMessageId(
- [visibleGoalInput, goalAssistant, followupUser, followupAssistant],
- {
- maxGoalIteration: 1,
- target: {
- createdAt: 100,
- objective: "把停止目标修好",
- sessionId: "sess_1",
- status: "paused",
- summaryTitle: null,
- targetId: "goal_1",
- timeUsedSeconds: 0,
- tokenBudget: null,
- tokensUsed: 0,
- updatedAt: 300,
- },
- },
- );
- expect(iterations.get("msg_goal_assistant_1")).toBe(1);
- expect(iterations.get("msg_followup_assistant")).toBeUndefined();
- });
- it("classifies old persisted fork notices as timeline-only", () => {
- const notification = userMessage(
- "msg_fork",
- "<system-reminder>\nThis session was forked from a previous session checkpoint.\n</system-reminder>",
- {
- synthetic: true,
- metadata: {
- source: "fork",
- forkContext: {
- kind: "session_fork",
- parentSessionId: "sess_parent",
- targetMessageId: "msg_target",
- targetCheckpointId: "checkpoint_1",
- },
- },
- },
- );
- expect(getConversationMessageProjectionPolicy(notification)).toBe("timelineOnly");
- expect(isZCodeModelOnlySyntheticUserMessage(notification)).toBe(false);
- expect(getZCodeUserVisibleMessages([notification])).toEqual([notification]);
- });
- it("classifies model-only fork notices as provider context", () => {
- const forkMetadata = {
- forkContext: {
- kind: "session_fork",
- parentSessionId: "sess_parent",
- targetMessageId: "msg_target",
- },
- source: "fork",
- visibility: "model-only",
- };
- const notification = userMessage(
- "msg_fork_model_only",
- "This session was forked from a previous session message.",
- {
- metadata: forkMetadata,
- synthetic: true,
- },
- 1,
- {
- metadata: forkMetadata,
- semantics: {
- kind: "fork_notice",
- origin: "agent_runtime",
- providerVisibility: "visible",
- source: "fork",
- transcriptVisibility: "hidden",
- uiVisibility: "hidden",
- },
- source: "fork",
- synthetic: true,
- visibility: "model-only",
- },
- );
- expect(getConversationMessageProjectionPolicy(notification)).toBe("providerContextOnly");
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("classifies model-only synthetic users as provider context", () => {
- const notification = userMessage("msg_model_only", "hidden context", { synthetic: true }, 1, {
- synthetic: true,
- visibility: "model-only",
- });
- expect(getConversationMessageProjectionPolicy(notification)).toBe("providerContextOnly");
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("does not treat unknown synthetic users as real user input", () => {
- const notification = userMessage(
- "msg_unknown_synthetic",
- "runtime context",
- { synthetic: true },
- 1,
- { synthetic: true },
- );
- expect(getConversationMessageProjectionPolicy(notification)).toBe("hiddenSynthetic");
- expect(getZCodeUserVisibleMessages([notification])).toEqual([]);
- });
- it("classifies plain user text as real user input", () => {
- const message = userMessage("msg_real_input", "真实用户输入");
- expect(getConversationMessageProjectionPolicy(message)).toBe("realUserInput");
- expect(getZCodeUserVisibleMessages([message])).toEqual([message]);
- });
- it("classifies a persisted visible assistant response as visible assistant content", () => {
- const base = assistantMessage("msg_visible_assistant", "已完成首轮回复", 2);
- const message: ZCodeMessageWithParts = {
- ...base,
- info: {
- ...base.info,
- semantics: {
- origin: "agent_runtime",
- kind: "assistant_response",
- uiVisibility: "visible",
- providerVisibility: "visible",
- transcriptVisibility: "visible",
- },
- },
- };
- expect(getConversationMessageProjectionPolicy(message)).toBe("visibleAssistant");
- expect(getZCodeUserVisibleMessages([message])).toEqual([message]);
- });
- it("does not treat plain user text as a task notification", () => {
- const message = userMessage(
- "msg_user_xml",
- "<task-notification>为什么这里显示出来了?</task-notification>",
- );
- expect(isZCodeModelOnlySyntheticUserMessage(message)).toBe(false);
- expect(getZCodeUserVisibleMessages([message])).toEqual([message]);
- });
- it("does not use background task notifications as the visible session title", () => {
- const notification = userMessage(
- "msg_background_first",
- "<task-notification>\n <status>completed</status>\n</task-notification>",
- {
- synthetic: true,
- metadata: { source: "background_task" },
- },
- );
- const realUserMessage = userMessage("msg_real", "修复登录按钮");
- expect(
- resolveZCodeVisibleSessionTitle({
- messages: [notification, realUserMessage],
- }),
- ).toBe("修复登录按钮");
- });
- });
|