refactor(workspace): fix viewportLocked regression and wire run status callback

This commit is contained in:
2026-08-14 12:09:46 +07:00
parent 8a61a2b359
commit 22ce61bcfe
4 changed files with 74 additions and 1274 deletions
@@ -132,10 +132,16 @@ describe("LaneConsolePane", () => {
expect(screen.queryByTestId("pane-lane-select")).not.toBeInTheDocument();
});
it("renders an empty placeholder with just a picker when laneId is null", () => {
render(<LaneConsolePane {...baseProps()} laneId={null} showLaneSelector />);
it("renders an empty placeholder when laneId is null and showLaneSelector is false", () => {
render(<LaneConsolePane {...baseProps()} laneId={null} showLaneSelector={false} />);
expect(screen.getByTestId("pane-empty")).toBeInTheDocument();
expect(screen.getByTestId("pane-lane-select")).toBeInTheDocument();
expect(screen.queryByTestId("console-body")).not.toBeInTheDocument();
});
it("renders the full console with selector when laneId is null but showLaneSelector is true", () => {
render(<LaneConsolePane {...baseProps()} laneId={null} showLaneSelector={true} />);
expect(screen.getByTestId("console-body")).toBeInTheDocument();
expect(screen.getByTestId("pane-lane-select")).toBeInTheDocument();
expect(screen.queryByTestId("pane-empty")).not.toBeInTheDocument();
});
});