I am running botium test for Google Dialogflow using Mocha as a test runner. Due to some reporting requirements, I forked botium-binding, but I am unable to retrieve the bot message.
Are there any hooks to retrieve the bot message while the test runs?
I am aware of the below construct, but it doesn't look like this code is called while Mocha runs the test.
WaitBotSays (...args) {
if (this.container) {
return this.container.WaitBotSays(...args)
} else {
return Promise.reject(new Error('Botium Initialization failed. Please see error messages above (enable debug logging).'))
}
}
I also tried to call WaitBotSays from this.compiler.convos.forEach((convo) => {...} but it seems to wait for the bot to respond and not proceed with the next step in the conversation.