fix(ci): align loader and channel test expectations

This commit is contained in:
Peter Steinberger
2026-04-03 19:00:14 +01:00
parent 54479220f5
commit d9e59f7329
3 changed files with 43 additions and 15 deletions

View File

@@ -731,7 +731,7 @@ describe("loadOpenClawPlugins", () => {
},
},
{
name: "keeps bundled channel plugins behind restrictive allowlists even when channels.<id>.enabled=true",
name: "lets explicit bundled channel enablement bypass restrictive allowlists",
config: {
channels: {
telegram: {
@@ -744,8 +744,8 @@ describe("loadOpenClawPlugins", () => {
} satisfies PluginLoadConfig,
assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {
const telegram = registry.plugins.find((entry) => entry.id === "telegram");
expect(telegram?.status).toBe("disabled");
expect(telegram?.error).toBe("not in allowlist");
expect(telegram?.status).toBe("loaded");
expect(telegram?.error).toBeUndefined();
expect(telegram?.explicitlyEnabled).toBe(true);
},
},