Skip to content

Commit c9b8411

Browse files
committed
mark 2 more flaky tests
1 parent 66121ea commit c9b8411

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/agenticGenUI.spec.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { test, expect } from "@playwright/test";
22
import { AgenticGenUIPage } from "../../pages/pydanticAIPages/AgenticUIGenPage";
33

44
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 ({
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 }

typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect, waitForAIResponse, retryOnAIFailure } from "../../test-is
22
import { HumanInLoopPage } from "../../pages/pydanticAIPages/HumanInLoopPage";
33

44
test.describe("Human in the Loop Feature", () => {
5-
test("[PydanticAI] should interact with the chat and perform steps", async ({
5+
test.fixme("[PydanticAI] should interact with the chat and perform steps", async ({
66
page,
77
}) => {
88
await retryOnAIFailure(async () => {
@@ -27,7 +27,7 @@ test.describe("Human in the Loop Feature", () => {
2727
await page.waitForTimeout(5000);
2828
await humanInLoop.uncheckItem(itemText);
2929
await humanInLoop.performSteps();
30-
30+
3131
await page.waitForFunction(
3232
() => {
3333
const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage'));
@@ -70,13 +70,13 @@ test.describe("Human in the Loop Feature", () => {
7070
await page.waitForTimeout(5000);
7171
await humanInLoop.uncheckItem(uncheckedItem);
7272
await humanInLoop.performSteps();
73-
73+
7474
await page.waitForFunction(
7575
() => {
7676
const messages = Array.from(document.querySelectorAll('.copilotKitAssistantMessage'));
7777
const lastMessage = messages[messages.length - 1];
7878
const content = lastMessage?.textContent?.trim() || '';
79-
79+
8080
return messages.length >= 3 && content.length > 0;
8181
},
8282
{ timeout: 30000 }

0 commit comments

Comments
 (0)