Menu
popagent
publicLatest change 2c7138e7ddf8cb6b5ac0dc1abbe6d76743366c19 - Checkpoint workspace and secret management work by AkurAI Build
import { describe, expect, test } from "bun:test";
import { renderToStaticMarkup } from "react-dom/server";
import { SecretList } from "./SecretSettingsPanel";
describe("SecretList", () => {
test("renders only secret metadata and operator actions", () => {
const marker = `credential-${crypto.randomUUID()}`;
const html = renderToStaticMarkup(<SecretList
secrets={[{
name: "login/password",
allowedOrigin: "https://example.com",
createdAt: "2026-08-14T00:00:00.000Z",
updatedAt: "2026-08-14T00:00:00.000Z",
}]}
onEdit={() => undefined}
onDelete={() => undefined}
/>);
expect(html).toContain("login/password");
expect(html).toContain("https://example.com");
expect(html).toContain("Edit binding");
expect(html).not.toContain(marker);
expect(html).not.toContain("Reveal");
});
});