Open
Description
I having an issue where only textToSpeech responses seem to work properly. I'm trying to test that the correct suggestions appear but only the textToSpeech array does. When I test it with the google actions console, I can see that the suggestion chips are appearing. I have tried it with a card as well and had the same results.
test.js:
'use strict';
const chai = require('chai');
const winston = require('winston');
var expect = chai.expect;
winston.loggers.add('DEFAULT_LOGGER', {
console:{
level: 'error',
colorize: true,
label: 'Default logger',
json: true,
timestamp: true
}
});
const { ActionsOnGoogleAva } = require('actions-on-google-testing');
const action = new ActionsOnGoogleAva(require('./test-credentials.json'));
action.startTest('NAME OF THE TEST', action => {
return action.start('my test app')
.then(res => {
return action.send('lmao');
})
.then(res => {
console.log("\n----------\n");
console.log(res);
console.log("\n----------\n");
});
});
test.js output:
(node:10552) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
(Use `node --trace-deprecation ...` to show where the warning was created)
| ** Starting test NAME OF THE TEST **
/ > Talk to my test app my test app
/ {
micOpen: false,
textToSpeech: [
'Getting the test version of my test app.\n' +
'Good day! What can I do for you today?'
],
displayText: [],
ssml: [],
suggestions: []
}
- > lmao
| {
micOpen: false,
textToSpeech: [ 'These are suggestion chips' ],
displayText: [],
ssml: [],
suggestions: []
}
/
----------
{
micOpen: false,
textToSpeech: [ 'These are suggestion chips' ],
displayText: [],
ssml: [],
suggestions: []
}
----------
test passes
> cancel
\ {
micOpen: false,
textToSpeech: [],
displayText: [],
ssml: [],
suggestions: []
}
test ends
/ NAME OF THE TEST
1 test passed
raw response from actions console test:
{
"conversationToken": "[]",
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "These are suggestion chips"
}
}
],
"suggestions": [
{
"title": "suggest 1"
},
{
"title": "suggest 2"
},
{
"title": "suggest 3"
}
]
}
},
"possibleIntents": [
{
"intent": "assistant.intent.action.TEXT"
}
]
}
],
"responseMetadata": {
"status": {
"message": "Success (200)"
},
"queryMatchInfo": {
"queryMatched": true,
"intent": "5e3602df-efba-4ac8-b6c2-1962e678c745"
}
}
}
Metadata
Metadata
Assignees
Labels
No labels