import { fireEvent, render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { NativeShellConnectionStatus } from "../NativeShellConnectionStatus";
describe("NativeShellConnectionStatus", () => {
it("shows local label for desktop local mode", () => {
render(
,
);
expect(screen.getByText("Local Fusion")).toBeInTheDocument();
});
it("opens manager when clicked", () => {
const onManage = vi.fn();
render(
,
);
fireEvent.click(screen.getByTestId("native-shell-status-btn"));
expect(onManage).toHaveBeenCalledTimes(1);
});
});