Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
} from "../../test-isolation-helper";
import { AgenticChatPage } from "../../pages/agnoPages/AgenticChatPage";

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}}'"

test("[Agno] Agentic Chat sends and receives a greeting message", async ({
page,
}) => {
Expand Down Expand Up @@ -40,8 +42,8 @@ test("[Agno] Agentic Chat provides stock price information", async ({
await chat.agentGreeting.waitFor({ state: "visible" });

// Ask for AAPL stock price
await chat.sendMessage("What is the current stock price of AAPL");
await chat.assertUserMessageVisible("What is the current stock price of AAPL");
await chat.sendMessage(appleAsk);
await chat.assertUserMessageVisible(appleAsk);
await waitForAIResponse(page);

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

// First question
await chat.sendMessage("Hi");
await chat.sendMessage("What is the current stock price of AAPL");
await chat.assertUserMessageVisible("What is the current stock price of AAPL");
await chat.sendMessage(appleAsk);
await chat.assertUserMessageVisible(appleAsk);
await waitForAIResponse(page);
await chat.assertAgentReplyContains("The current stock price of Apple Inc. (AAPL) is");

Expand Down
Loading
Loading