@@ -2,7 +2,8 @@ import { test, expect } from "@playwright/test";
2
2
import { AgenticGenUIPage } from "../../pages/pydanticAIPages/AgenticUIGenPage" ;
3
3
4
4
test . 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 ( {
6
7
page,
7
8
} ) => {
8
9
const genUIAgent = new AgenticGenUIPage ( page ) ;
@@ -20,13 +21,13 @@ test.describe("Agent Generative UI Feature", () => {
20
21
await genUIAgent . sendButton . click ( ) ;
21
22
await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
22
23
await genUIAgent . plan ( ) ;
23
-
24
+
24
25
await page . waitForFunction (
25
26
( ) => {
26
27
const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
27
28
const lastMessage = messages [ messages . length - 1 ] ;
28
29
const content = lastMessage ?. textContent ?. trim ( ) || '' ;
29
-
30
+
30
31
return messages . length >= 3 && content . length > 0 ;
31
32
} ,
32
33
{ timeout : 30000 }
@@ -49,16 +50,16 @@ test.describe("Agent Generative UI Feature", () => {
49
50
50
51
await genUIAgent . sendMessage ( "Go to Mars" ) ;
51
52
await genUIAgent . sendButton . click ( ) ;
52
-
53
+
53
54
await expect ( genUIAgent . agentPlannerContainer ) . toBeVisible ( { timeout : 15000 } ) ;
54
55
await genUIAgent . plan ( ) ;
55
-
56
+
56
57
await page . waitForFunction (
57
58
( ) => {
58
59
const messages = Array . from ( document . querySelectorAll ( '.copilotKitAssistantMessage' ) ) ;
59
60
const lastMessage = messages [ messages . length - 1 ] ;
60
61
const content = lastMessage ?. textContent ?. trim ( ) || '' ;
61
-
62
+
62
63
return messages . length >= 3 && content . length > 0 ;
63
64
} ,
64
65
{ timeout : 30000 }
0 commit comments