test(qa): assert Telegram command denial (#102732)

This commit is contained in:
Peter Steinberger 2026-07-09 12:40:48 +01:00 committed by GitHub
parent 5b4302b52e
commit a0267273d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,17 +43,15 @@ flow:
- call: waitForTransportReady
args: [{ ref: env }, 60000]
- resetTransport: true
- set: deniedStart
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: /status@openclaw
- waitForNoOutbound:
quietMs: 8000
sinceIndex: { ref: deniedStart }
- waitForOutbound:
conversation: { id: telegram-command-room, kind: channel }
textIncludes: You are not authorized to use this command.
timeoutMs: 60000
finally:
- call: env.gateway.restartAfterStateMutation
args: