diff --git a/e2e/run.spec.ts b/e2e/run.spec.ts index e9741e3f..9f046e3e 100644 --- a/e2e/run.spec.ts +++ b/e2e/run.spec.ts @@ -49,6 +49,9 @@ test("run a simulation end-to-end and inspect the recorded run", async ({ await expect(page.getByTestId("status-pill-running")).toBeVisible({ timeout: 60_000, }); + // The console defaults to collapsed; expand it to watch the live output + // (the choice is remembered for the session, so later steps see it open). + await page.getByTestId("run-console-toggle").click(); // Live console follows the engine output. await expect(page.getByTestId("run-console")).toContainText("LAMMPS", { timeout: 60_000, diff --git a/src/shell/RunDetail.tsx b/src/shell/RunDetail.tsx index 88085c00..11d37341 100644 --- a/src/shell/RunDetail.tsx +++ b/src/shell/RunDetail.tsx @@ -68,10 +68,10 @@ const RunDetail = ({ runId }: { runId: string }) => { const [frameUrl, setFrameUrl] = useState(null); const [outputs, setOutputs] = useState([]); const consoleRef = useRef(null); - // Collapsible console strip: default expanded, choice remembered for the - // session so the viewport keeps the reclaimed height across run screens. + // Collapsible console strip: default collapsed so the viewport gets the + // height; an explicit expand is remembered for the session. const [consoleCollapsed, setConsoleCollapsed] = useState( - () => sessionStorage.getItem(CONSOLE_COLLAPSED_KEY) === "1", + () => sessionStorage.getItem(CONSOLE_COLLAPSED_KEY) !== "0", ); const toggleConsole = () => setConsoleCollapsed((previous) => {