Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Help (TypeError: Cannot use 'in' operator to search for 'endConversation' in undefined) #7

Closed
LuizPiresS opened this issue Mar 23, 2021 · 1 comment

Comments

@LuizPiresS
Copy link

LuizPiresS commented Mar 23, 2021

Good afternoon!!

I have one going through a little problem. Whenever I try to send the second query the error:
TypeError: Cannot use 'in' operator to search for 'endConversation' in undefined

it('should trigger action', async function () {
    await test.sendQuery(TRIGGER_PHRASE);
    await test.sendQuery('Cartão Digital Pré-Pago')
    test.assertText('Parece que você está interessado em saber mais sobre cartões digitais pré-pagos! Como posso te ajudar? Você pode perguntar sobre o que é um cartão digital ou por onde você vai recebê-lo, por exemplo.')
  });
--- sendQuery called with 'Falar com o app meu app de teste'
--- sendQuery called with 'Cartão Digital Pré-Pago'

TypeError: Cannot use 'in' operator to search for 'endConversation' in undefined
    at ActionsOnGoogleTestManager.getIsConversationEnded (node_modules\@assistant\conversation-testing\dist\action-on-google-test-manager.js:559:34)
    at ActionsOnGoogleTestManager.sendInteraction (node_modules\@assistant\conversation-testing\dist\action-on-google-test-manager.js:75:40)
    at ActionsOnGoogleTestManager.sendQuery (node_modules\@assistant\conversation-testing\dist\action-on-google-test-manager.js:68:21)
    at Context.<anonymous> (test\saldo.test.js:50:16)

Thank you very much

@Fleker
Copy link
Member

Fleker commented Mar 23, 2021

Closing as a duplicate of #6.

@Fleker Fleker closed this as completed Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants