diff --git a/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/agenticGenUI.spec.ts b/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/agenticGenUI.spec.ts index 0a7a722a6..cacdbf7d0 100644 --- a/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/agenticGenUI.spec.ts +++ b/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/agenticGenUI.spec.ts @@ -2,7 +2,8 @@ import { test, expect } from "@playwright/test"; import { AgenticGenUIPage } from "../../pages/pydanticAIPages/AgenticUIGenPage"; test.describe("Agent Generative UI Feature", () => { - test("[PydanticAI] should interact with the chat to get a planner on prompt", async ({ + // Flaky. Sometimes the steps render but never process. + test.fixme("[PydanticAI] should interact with the chat to get a planner on prompt", async ({ page, }) => { const genUIAgent = new AgenticGenUIPage(page); @@ -20,13 +21,13 @@ test.describe("Agent Generative UI Feature", () => { await genUIAgent.sendButton.click(); await expect(genUIAgent.agentPlannerContainer).toBeVisible({ timeout: 15000 }); await genUIAgent.plan(); - + await page.waitForFunction( () => { const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage')); const lastMessage = messages[messages.length - 1]; const content = lastMessage?.textContent?.trim() || ''; - + return messages.length >= 3 && content.length > 0; }, { timeout: 30000 } @@ -49,16 +50,16 @@ test.describe("Agent Generative UI Feature", () => { await genUIAgent.sendMessage("Go to Mars"); await genUIAgent.sendButton.click(); - + await expect(genUIAgent.agentPlannerContainer).toBeVisible({ timeout: 15000 }); await genUIAgent.plan(); - + await page.waitForFunction( () => { const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage')); const lastMessage = messages[messages.length - 1]; const content = lastMessage?.textContent?.trim() || ''; - + return messages.length >= 3 && content.length > 0; }, { timeout: 30000 } diff --git a/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts b/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts index efd0c162b..39b880399 100644 --- a/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts +++ b/typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts @@ -2,7 +2,7 @@ import { test, expect, waitForAIResponse, retryOnAIFailure } from "../../test-is import { HumanInLoopPage } from "../../pages/pydanticAIPages/HumanInLoopPage"; test.describe("Human in the Loop Feature", () => { - test("[PydanticAI] should interact with the chat and perform steps", async ({ + test.fixme("[PydanticAI] should interact with the chat and perform steps", async ({ page, }) => { await retryOnAIFailure(async () => { @@ -27,7 +27,7 @@ test.describe("Human in the Loop Feature", () => { await page.waitForTimeout(5000); await humanInLoop.uncheckItem(itemText); await humanInLoop.performSteps(); - + await page.waitForFunction( () => { const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage')); @@ -70,13 +70,13 @@ test.describe("Human in the Loop Feature", () => { await page.waitForTimeout(5000); await humanInLoop.uncheckItem(uncheckedItem); await humanInLoop.performSteps(); - + await page.waitForFunction( () => { const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage')); const lastMessage = messages[messages.length - 1]; const content = lastMessage?.textContent?.trim() || ''; - + return messages.length >= 3 && content.length > 0; }, { timeout: 30000 }