+ {/* 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);