@@ -2,7 +2,8 @@ import { test, expect } from "@playwright/test";
22import { AgenticGenUIPage } from "../../pages/pydanticAIPages/AgenticUIGenPage" ;
33
44test . describe ( "Agent Generative UI Feature" , ( ) => {
5- test ( "[PydanticAI] should interact with the chat to get a planner on prompt" , async ( {
5+ // Flaky. Sometimes the steps render but never process.
6+ test . fixme ( "[PydanticAI] should interact with the chat to get a planner on prompt" , async ( {
67 page,
78 } ) => {
89 const genUIAgent = new AgenticGenUIPage ( page ) ;
@@ -20,13 +21,13 @@ test.describe("Agent Generative UI Feature", () => {
2021 await genUIAgent . sendButton . click ( ) ;
2122 await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
2223 await genUIAgent . plan ( ) ;
23-
24+
2425 await page . waitForFunction (
2526 ( ) => {
2627 const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
2728 const lastMessage = messages [ messages . length - 1 ] ;
2829 const content = lastMessage ?. textContent ?. trim ( ) || '' ;
29-
30+
3031 return messages . length >= 3 && content . length > 0 ;
3132 } ,
3233 { timeout : 30000 }
@@ -49,16 +50,16 @@ test.describe("Agent Generative UI Feature", () => {
4950
5051 await genUIAgent . sendMessage ( "Go to Mars" ) ;
5152 await genUIAgent . sendButton . click ( ) ;
52-
53+
5354 await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
5455 await genUIAgent . plan ( ) ;
55-
56+
5657 await page . waitForFunction (
5758 ( ) => {
5859 const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
5960 const lastMessage = messages [ messages . length - 1 ] ;
6061 const content = lastMessage ?. textContent ?. trim ( ) || '' ;
61-
62+
6263 return messages . length >= 3 && content . length > 0 ;
6364 } ,
6465 { timeout : 30000 }
0 commit comments