import { afterEach, describe, expect, it, vi } from "vitest"; import { cleanup, fireEvent, render, screen } from "@testing-library/react"; import type { Workflow } from "@/lib/types/http"; import { WorkflowPromptSection } from "./workflow-prompt-section"; const PROMPT_INPUT = "workflow-prompt-input"; const promptEditor = vi.hoisted(() => vi.fn()); vi.mock("./settings-prompt-editor", () => ({ SettingsPromptEditor: (props: Record) => { promptEditor(props); return (