Skip to content

Commit e2036fa

Browse files
authored
Fixes for most of tool-based generative ui and some other misc tests (#320)
* correct default port for langgraph typescript * Update toolbased gen ui example on frontend * tighten up agno agentic chat and tool based gen ui examples * fixup langgraph examples. * remove backend tool from mastra example * Be more explicit in agno test * regen files
1 parent 77a7405 commit e2036fa

File tree

9 files changed

+349
-475
lines changed

9 files changed

+349
-475
lines changed

typescript-sdk/apps/dojo/e2e/tests/agnoTests/agenticChatPage.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {
66
} from "../../test-isolation-helper";
77
import { AgenticChatPage } from "../../pages/agnoPages/AgenticChatPage";
88

9+
const appleAsk = "What is the current stock price of AAPL? Please respond in the format of 'The current stock price of Apple Inc. (AAPL) is {{price}}'"
10+
911
test("[Agno] Agentic Chat sends and receives a greeting message", async ({
1012
page,
1113
}) => {
@@ -40,8 +42,8 @@ test("[Agno] Agentic Chat provides stock price information", async ({
4042
await chat.agentGreeting.waitFor({ state: "visible" });
4143

4244
// Ask for AAPL stock price
43-
await chat.sendMessage("What is the current stock price of AAPL");
44-
await chat.assertUserMessageVisible("What is the current stock price of AAPL");
45+
await chat.sendMessage(appleAsk);
46+
await chat.assertUserMessageVisible(appleAsk);
4547
await waitForAIResponse(page);
4648

4749
// Check if the response contains the expected stock price information
@@ -63,8 +65,8 @@ test("[Agno] Agentic Chat retains memory of previous questions", async ({
6365

6466
// First question
6567
await chat.sendMessage("Hi");
66-
await chat.sendMessage("What is the current stock price of AAPL");
67-
await chat.assertUserMessageVisible("What is the current stock price of AAPL");
68+
await chat.sendMessage(appleAsk);
69+
await chat.assertUserMessageVisible(appleAsk);
6870
await waitForAIResponse(page);
6971
await chat.assertAgentReplyContains("The current stock price of Apple Inc. (AAPL) is");
7072

0 commit comments

Comments
 (0)