diff --git a/src/features/run/ConsoleView.tsx b/src/features/run/ConsoleView.tsx index 64cb70cb9..4493beae5 100644 --- a/src/features/run/ConsoleView.tsx +++ b/src/features/run/ConsoleView.tsx @@ -498,6 +498,19 @@ export function ConsoleView({ const items = virtualizer.getVirtualItems(); return (
+ {/* A console whose find bar is not driven by a toolbar (a stack-trace tab, say) still + needs a visible way in: the same Find the Run toolbar offers, over the output. */} + {controlledFindOpen === undefined && !findOpen && ( + + )} {findOpen && ( { + it("offers a visible Find entry in a console without a toolbar (stack traces)", () => { + setup(); + fireEvent.click(screen.getByRole("button", { name: "Find in console" })); + expect(screen.getByRole("search")).toBeInTheDocument(); + expect(input()).toHaveFocus(); + }); + it("opens on ⌘F, searches as you type and highlights every match", () => { const { log, view } = setup(); const bar = openFind(log);