feat(FN-3396): bundle Cursor CLI as a plugin provider with dashboard auth w
Merges FN-3396's full Cursor CLI provider integration (Steps 1–4): defines a CLI-backed provider contract, adds the `fusion-plugin-cursor-runtime` plugin package with process management and runtime probes, wires dashboard auth flows and UI (ProviderCard, onboarding modal, settings), and bundles the Fusion-Task-Id: FN-3396
This commit is contained in:
@@ -58,6 +58,16 @@ describe("ProviderIcon", () => {
|
||||
expect(svg.parentElement).toHaveStyle({ color: "var(--provider-openai)" });
|
||||
});
|
||||
|
||||
it("renders cursor-cli icon with provider token color", () => {
|
||||
render(<ProviderIcon provider="cursor-cli" />);
|
||||
const svg = screen.getByTestId("cursor-cli-icon");
|
||||
expect(svg).toBeInTheDocument();
|
||||
expect(screen.getByLabelText("Cursor — via Cursor CLI")).toBeInTheDocument();
|
||||
const badgeGlyph = svg.querySelector('path[stroke="var(--provider-icon-contrast)"]');
|
||||
expect(badgeGlyph).toBeInTheDocument();
|
||||
expect(svg.parentElement).toHaveStyle({ color: "var(--provider-cursor-cli)" });
|
||||
});
|
||||
|
||||
it("normalizes PI-Claude-CLI provider name to lowercase alias", () => {
|
||||
render(<ProviderIcon provider="PI-Claude-CLI" />);
|
||||
const svg = screen.getByTestId("claude-cli-icon");
|
||||
|
||||
Reference in New Issue
Block a user