0

In the Botkit connector sample Botkit40 folder, there isn't a test on buttons.

ButtonsAsserter work in Botkit 0.7.

shawnl
  • 1,861
  • 1
  • 15
  • 17

1 Answers1

0

With the latest Botium Botkit Connector support for quick replies (buttons) and file attachments has been added.

So, if your Botkit bot replies something like this:

    await bot.reply(message, {
      text: 'Look, quick replies!',
      quick_replies: [
        {
          title: 'Hello',
          payload: 'hello'
        },
        {
          title: 'Help',
          payload: 'help'
        }
      ]
    })

You can use this BotiumScript test case for asserting the presence of the buttons:

buttons

#me
buttons

#bot
Look, quick replies!
BUTTONS Hello|Help
Florian Treml
  • 1,315
  • 2
  • 7
  • 10