Skip to content

Commit c8b9cc7

Browse files
committed
Be more explicit in agno test
1 parent 7f04f23 commit c8b9cc7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
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)