test(extensions): move registry channel contracts

This commit is contained in:
Peter Steinberger
2026-04-20 20:53:26 +01:00
parent 9c9ca5f431
commit 958ca2ebec
14 changed files with 398 additions and 785 deletions

View File

@@ -0,0 +1,24 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { describe } from "vitest";
import { installChannelActionsContractSuite } from "../../../test/helpers/channels/registry-contract-suites.js";
import { telegramPlugin } from "../api.js";
describe("telegram actions contract", () => {
installChannelActionsContractSuite({
plugin: telegramPlugin,
cases: [
{
name: "exposes configured Telegram actions and capabilities",
cfg: {
channels: {
telegram: {
botToken: "123:telegram-test-token",
},
},
} as OpenClawConfig,
expectedActions: ["send", "poll", "react", "delete", "edit", "topic-create", "topic-edit"],
expectedCapabilities: ["interactive", "buttons"],
},
],
});
});