66} from "../../test-isolation-helper" ;
77import { 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+
911test ( "[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