/** * @file SessionReplay.test.tsx * @description An ended session opened in its workspace: its conversation and * a prompt box; opening it starts nothing, and only a SENT message resumes it * (`resumeSessionId` + the prompt, in the first free pane slot), after which * the pane opens. * @author Nguyễn Ngọc Trí Vĩ */ import { beforeEach, describe, expect, it, vi } from "vitest"; import { render, screen, waitFor } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import type { Lane } from "../../../lib/types"; import type { RunHandle } from "../../../lib/api"; vi.mock("../../conversation/ConversationView", () => ({ ConversationView: ({ sessionId }: { sessionId: string }) => (
{sessionId}
), })); vi.mock("../../run/RunSetup", () => ({ PromptEditor: ({ value, onChange, placeholder, }: { value: string; onChange: (s: string) => void; placeholder: string; }) => (