mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 00:01:36 +00:00
* test(qa): migrate channel command scenarios * test(qa): distinguish portable command headings * test(qa): preserve canonical scenario ownership
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
title: Telegram context command reply
|
|
|
|
scenario:
|
|
id: telegram-context-command
|
|
surface: channel-framework
|
|
category: channel-framework.channel-actions-commands-and-approvals
|
|
coverage:
|
|
primary: [channels.native-commands]
|
|
objective: Verify Telegram context help reaches native command routing.
|
|
successCriteria:
|
|
- The context command returns the context list shortcut.
|
|
- The reply explains the inline shortcut.
|
|
codeRefs:
|
|
- src/auto-reply/reply/commands-context.ts
|
|
- extensions/qa-lab/src/live-transports/telegram/adapter.runtime.ts
|
|
execution:
|
|
kind: flow
|
|
channel: telegram
|
|
summary: Run Telegram context help and verify the list shortcut.
|
|
config:
|
|
expectedAny: [/context list, Inline shortcut]
|
|
|
|
flow:
|
|
steps:
|
|
- name: context returns shortcut help
|
|
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' ? '/context@openclaw' : '/context'"
|
|
- waitForOutbound:
|
|
conversation: { id: telegram-command-room, kind: channel }
|
|
sinceIndex: { ref: startIndex }
|
|
textIncludes: /context list
|
|
timeoutMs: 60000
|
|
saveAs: reply
|
|
- assert:
|
|
expr: "config.expectedAny.every((needle) => reply.text.includes(needle))"
|
|
message:
|
|
expr: "`context reply missing expected text: ${reply.text}`"
|
|
detailsExpr: reply.text
|