mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 06:11:38 +00:00
* test(qa): migrate channel command scenarios * test(qa): distinguish portable command headings * test(qa): preserve canonical scenario ownership
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
title: Telegram status command reply
|
|
|
|
scenario:
|
|
id: telegram-status-command
|
|
surface: channel-framework
|
|
category: channel-framework.channel-actions-commands-and-approvals
|
|
coverage:
|
|
primary: [channels.native-commands]
|
|
regressionRefs:
|
|
- openclaw/openclaw#74698
|
|
objective: Verify Telegram status returns model, session, and activation details.
|
|
successCriteria:
|
|
- The status command succeeds in the Telegram group path.
|
|
- The reply includes model, session, and activation fields.
|
|
codeRefs:
|
|
- src/auto-reply/reply/commands-status.ts
|
|
- extensions/qa-lab/src/live-transports/telegram/adapter.runtime.ts
|
|
execution:
|
|
kind: flow
|
|
channel: telegram
|
|
summary: Run Telegram status and verify representative status fields.
|
|
config:
|
|
expectedAny: [OpenClaw, "Model:", "Session:", "Activation:"]
|
|
|
|
flow:
|
|
steps:
|
|
- name: status includes session details
|
|
actions:
|
|
- resetTransport: true
|
|
- set: startIndex
|
|
value:
|
|
expr: "state.getSnapshot().messages.filter((message) => message.direction === 'outbound').length"
|
|
- sendInbound:
|
|
conversation: { id: telegram-command-room, kind: channel }
|
|
senderId: qa-command-operator
|
|
senderName: QA Command Operator
|
|
text:
|
|
expr: "transport.id === 'telegram' ? '/status@openclaw' : '/status'"
|
|
- waitForOutbound:
|
|
conversation: { id: telegram-command-room, kind: channel }
|
|
sinceIndex: { ref: startIndex }
|
|
textIncludes: OpenClaw
|
|
timeoutMs: 60000
|
|
saveAs: reply
|
|
- assert:
|
|
expr: "config.expectedAny.every((needle) => reply.text.includes(needle))"
|
|
message:
|
|
expr: "`status reply missing expected text: ${reply.text}`"
|
|
detailsExpr: reply.text
|