Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions e2e/run.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/shell/RunDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ const RunDetail = ({ runId }: { runId: string }) => {
const [frameUrl, setFrameUrl] = useState<string | null>(null);
const [outputs, setOutputs] = useState<FileStat[]>([]);
const consoleRef = useRef<HTMLDivElement | null>(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) => {
Expand Down
Loading