Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { describe, expect, it, vi } from "vitest";
import { CliSection } from "./cli-section";
vi.mock("../../i18n", () => ({
useLocale: () => ({
t: {
download: {
cli: {
title: "Prefer the CLI?",
sub: "For servers and headless setups.",
installLabel: "Install",
platformGroup: "Choose your platform",
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
startLabel: "Start daemon",
copyLabel: "Copy",
copiedLabel: "Copied",
},
},
},
}),
}));
const WINDOWS_CMD =
"irm https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.ps1 | iex";
describe("CliSection", () => {
// The switch itself is covered in @multica/views; this checks the landing
// dictionary is wired into it and the daemon block stays shared.
it("wires the platform switch into the install block", async () => {
const user = userEvent.setup();
render(<CliSection />);
await user.click(screen.getByRole("tab", { name: "Windows" }));
expect(screen.getByText(WINDOWS_CMD)).toBeInTheDocument();
expect(screen.getByText("multica setup")).toBeInTheDocument();
});
});