@@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";
22import { AgenticGenUIPage } from "../../pages/crewAIPages/AgenticUIGenPage" ;
33
44test . describe ( "Agent Generative UI Feature" , ( ) => {
5- test ( "[CrewAI] should interact with the chat to get a planner on prompt" , async ( {
5+ test . fixme ( "[CrewAI] should interact with the chat to get a planner on prompt" , async ( {
66 page,
77 } ) => {
88 const genUIAgent = new AgenticGenUIPage ( page ) ;
@@ -20,20 +20,20 @@ test.describe("Agent Generative UI Feature", () => {
2020 await genUIAgent . sendButton . click ( ) ;
2121 await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
2222 await genUIAgent . plan ( ) ;
23-
23+
2424 await page . waitForFunction (
2525 ( ) => {
2626 const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
2727 const lastMessage = messages [ messages . length - 1 ] ;
2828 const content = lastMessage ?. textContent ?. trim ( ) || '' ;
29-
29+
3030 return messages . length >= 3 && content . length > 0 ;
3131 } ,
3232 { timeout : 30000 }
3333 ) ;
3434 } ) ;
3535
36- test ( "[CrewAI] should interact with the chat using predefined prompts and perform steps" , async ( {
36+ test . fixme ( "[CrewAI] should interact with the chat using predefined prompts and perform steps" , async ( {
3737 page,
3838 } ) => {
3939 const genUIAgent = new AgenticGenUIPage ( page ) ;
@@ -49,16 +49,16 @@ test.describe("Agent Generative UI Feature", () => {
4949
5050 await genUIAgent . sendMessage ( "Go to Mars" ) ;
5151 await genUIAgent . sendButton . click ( ) ;
52-
52+
5353 await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
5454 await genUIAgent . plan ( ) ;
55-
55+
5656 await page . waitForFunction (
5757 ( ) => {
5858 const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
5959 const lastMessage = messages [ messages . length - 1 ] ;
6060 const content = lastMessage ?. textContent ?. trim ( ) || '' ;
61-
61+
6262 return messages . length >= 3 && content . length > 0 ;
6363 } ,
6464 { timeout : 30000 }
0 commit comments