import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import type { WorkflowStep } from "@/lib/types/http"; import { WorkflowStepAgentProfileSelector } from "./workflow-step-agent-profile-selector"; const breakpoint = { isMobile: false }; const ARIA_PRESSED = "aria-pressed"; const ARIA_TRUE = "true"; const START_NEW_TEST_ID = "step-1-profile-session-start-new"; vi.mock("@/hooks/use-responsive-breakpoint", () => ({ useResponsiveBreakpoint: () => breakpoint, })); vi.mock("@/hooks/domains/settings/use-healthy-agent-profiles", () => ({ useHealthyAgentProfiles: () => [ { id: "profile-a", label: "Codex • Fast", agent_id: "agent-a", agent_name: "codex", cli_passthrough: false, }, { id: "profile-b", label: "Claude • Review", agent_id: "agent-b", agent_name: "claude", cli_passthrough: false, }, ], })); vi.mock("@/components/agent-logo", () => ({ AgentLogo: ({ agentName }: { agentName: string }) => (