Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 }
Expand All @@ -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 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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'));
Expand Down Expand Up @@ -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 }
Expand Down
Loading