This repository was archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
TypeError: Cannot use 'in' operator to search for 'endConversation' in undefined #6
Copy link
Copy link
Open
Description
Hello,
I made a topic on StackOverflow with my problem but nobody responds about this so I will copy/paste here everything here.
I did everything what is wrote in the setup configuration and when I tried to test my queries I can only send the first started query to start an application and if I try to send a second query with a different phrase there is an error with TypeError: Cannot use 'in' operator to search for 'endConversation' in undefined. I don't know how to resolve it. Any help will be appreciated.
import "mocha";
import { ActionsOnGoogleTestManager } from "@assistant/conversation-testing";
const { expect } = require("chai");
const DEFAULT_LOCALE = "en-GB";
const DEFAULT_SURFACE = "SMART_DISPLAY";
const projectId = "test";
const TRIGGER_PHRASE = "Talk to test";
describe("Test Suite", function () {
// Set the timeout for each test run to 60s.
this.timeout(60000);
let testManager: ActionsOnGoogleTestManager;
afterEach(function () {
testManager.cleanUpAfterTest();
});
before(async function () {
testManager = new ActionsOnGoogleTestManager({ projectId });
await testManager.writePreviewFromDraft();
testManager.setSuiteLocale(DEFAULT_LOCALE);
testManager.setSuiteSurface(DEFAULT_SURFACE);
});
it("welcome intent", async function () {
testManager.setTestLocale("en-GB");
await testManager.sendQuery(TRIGGER_PHRASE);
testManager.assertSpeech(
"Welcome Alpha"
);
// await testManager.sendQuery("donation");
});
});
Working ss:
If I tried to uncomment the second query with 'donation' there is an error that I mentioned above.
Metadata
Metadata
Assignees
Labels
No labels

