feat(FN-3260): document static slot-host rendering contract
Documents the static slot-host rendering contract in `docs/PLUGIN_AUTHORING.md`, clarifying how plugins should interact with the rendering system. Fusion-Task-Id: FN-3260
This commit is contained in:
@@ -69,6 +69,10 @@ vi.mock("../CustomProviderForm", () => ({
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock("../PluginSlot", () => ({
|
||||
PluginSlot: ({ slotId }: { slotId: string }) => <div data-testid={`plugin-slot-${slotId}`}>Plugin slot: {slotId}</div>,
|
||||
}));
|
||||
|
||||
// Mock model-onboarding-state
|
||||
const mockGetOnboardingState = vi.fn();
|
||||
const mockSaveOnboardingState = vi.fn();
|
||||
@@ -221,6 +225,10 @@ describe("ModelOnboardingModal", () => {
|
||||
expect(screen.getByText("Set Up AI")).toBeTruthy();
|
||||
});
|
||||
|
||||
expect(screen.getByTestId("plugin-slot-onboarding-provider-card")).toBeInTheDocument();
|
||||
expect(screen.getByTestId("plugin-slot-onboarding-recommendation-card")).toBeInTheDocument();
|
||||
expect(screen.getByTestId("plugin-slot-onboarding-setup-help")).toBeInTheDocument();
|
||||
|
||||
// Check step indicators
|
||||
expect(screen.getByText("AI Setup")).toBeTruthy();
|
||||
expect(screen.getByText("GitHub")).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user