mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
test: tighten wizard plugin config assertions
This commit is contained in:
parent
ae14f3a459
commit
b4d37feec6
1 changed files with 3 additions and 2 deletions
|
|
@ -87,8 +87,9 @@ describe("discoverConfigurablePlugins", () => {
|
|||
// sensitive fields are still included in uiHints for discovery —
|
||||
// they are skipped at prompt time, not at discovery time
|
||||
const plugin = requireFirst(result, "configurable plugin");
|
||||
expect(plugin.uiHints.endpoint).toMatchObject({ label: "Endpoint" });
|
||||
expect(plugin.uiHints.apiKey).toMatchObject({ label: "API Key", sensitive: true });
|
||||
expect(plugin.uiHints.endpoint?.label).toBe("Endpoint");
|
||||
expect(plugin.uiHints.apiKey?.label).toBe("API Key");
|
||||
expect(plugin.uiHints.apiKey?.sensitive).toBe(true);
|
||||
});
|
||||
|
||||
it("excludes plugins where all fields are advanced", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue