feat(FN-3398): update desktop README with multi-project setup and troublesh
The merge lands Step 7 of FN-3398, adding documentation and delivery artifacts across the mobile and desktop packages with updated READMEs, mobile-specific docs, and architecture references. Fusion-Task-Id: FN-3398
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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(
|
||||
<NativeShellConnectionStatus
|
||||
state={{ host: "desktop-shell", desktopMode: "local", activeProfileId: null, profiles: [] }}
|
||||
onManage={vi.fn()}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(screen.getByText("Local Fusion")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("opens manager when clicked", () => {
|
||||
const onManage = vi.fn();
|
||||
render(
|
||||
<NativeShellConnectionStatus
|
||||
state={{ host: "mobile-shell", activeProfileId: "p1", profiles: [{ id: "p1", name: "Prod", serverUrl: "https://fusion.example.com", createdAt: "", updatedAt: "" }] }}
|
||||
onManage={onManage}
|
||||
/>,
|
||||
);
|
||||
|
||||
fireEvent.click(screen.getByTestId("native-shell-status-btn"));
|
||||
expect(onManage).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user