2
0

🐛 (script) Execute client side actions before first bubbles

This commit is contained in:
Baptiste Arnaud
2023-02-27 18:30:20 +01:00
parent eaf8024c84
commit d5b8a43d3f
5 changed files with 20 additions and 27 deletions

View File

@ -162,18 +162,6 @@ test('API chat execution should work on published bot', async ({ request }) => {
expect(input.type).toBe('choice input')
})
await test.step('Answer Buttons question with invalid choice', async () => {
const { messages, input } = await (
await request.post(`/api/v1/sendMessage`, {
data: { message: 'Yolo', sessionId: chatSessionId },
})
).json()
expect(messages[0].content.plainText).toBe(
'Invalid message. Please, try again.'
)
expect(input.type).toBe('choice input')
})
await test.step('Answer Buttons question with invalid choice', async () => {
const { messages } = await (
await request.post(`/api/v1/sendMessage`, {