Files
fusion/packages/dashboard/app/__tests__/App.shell-onboarding.test.tsx
Fusion 419c6f3b31 feat(FN-3400): add native shell connection handoff, plugin management CLI/l
This merge adds a complete plugin management system (FN-3565) with CLI commands, a loader, runner, and dashboard routes, along with project-scoped auth storage (FN-3544), native shell connection support for mobile (FN-3400) spanning onboarding, connection manager, and remote desktop handoff, and ref

Fusion-Task-Id: FN-3400
2026-05-06 05:29:56 -07:00

45 lines
1.1 KiB
TypeScript

import { describe, expect, it } from "vitest";
import { requiresNativeShellOnboarding } from "../App";
describe("App shell onboarding gating", () => {
it("requires onboarding for mobile shell without active profile", () => {
expect(
requiresNativeShellOnboarding(
{ host: "mobile-shell", activeProfileId: null },
true,
false,
),
).toBe(true);
});
it("requires onboarding for desktop remote mode without active profile", () => {
expect(
requiresNativeShellOnboarding(
{ host: "desktop-shell", desktopMode: "remote", activeProfileId: null },
true,
false,
),
).toBe(true);
});
it("skips onboarding for desktop local mode", () => {
expect(
requiresNativeShellOnboarding(
{ host: "desktop-shell", desktopMode: "local", activeProfileId: null },
true,
false,
),
).toBe(false);
});
it("skips onboarding for web host", () => {
expect(
requiresNativeShellOnboarding(
{ host: "web", activeProfileId: null },
true,
false,
),
).toBe(false);
});
});