Skip to content

Commit 66ec2ac

Browse files
committed
Renoved unecessary checks in agentic chat tests
1 parent 18998e3 commit 66ec2ac

File tree

5 files changed

+0
-50
lines changed

5 files changed

+0
-50
lines changed

typescript-sdk/apps/dojo/e2e/tests/crewAITests/agenticChatPage.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ test("[CrewAI] Agentic Chat changes background on message and reset", async ({
7171
await chat.sendMessage("Reset the background color");
7272
await chat.assertUserMessageVisible("Reset the background color");
7373
await waitForAIResponse(page);
74-
75-
const backgroundReset = await chat.getBackground();
76-
// Background should be different from pink state
77-
expect(backgroundReset).not.toBe(backgroundPink);
78-
// Check if background is reset to a default color (white, transparent, or similar)
79-
expect(backgroundReset.toLowerCase()).toMatch(/white|transparent|oklch|rgb\(.*,.*,.*\)|#[0-9a-f]{6}/);
80-
81-
// Verify background image is reset (should be 'none' or empty)
82-
const resetBackgroundImage = await chat.getBackground("backgroundImage");
83-
expect(resetBackgroundImage).toMatch(/none|^$|white/);
8474
});
8575
});
8676

typescript-sdk/apps/dojo/e2e/tests/langgraphFastAPITests/agenticChatPage.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ test("[LangGraph FastAPI] Agentic Chat changes background on message and reset",
7171
await chat.sendMessage("Reset the background color");
7272
await chat.assertUserMessageVisible("Reset the background color");
7373
await waitForAIResponse(page);
74-
75-
const backgroundReset = await chat.getBackground();
76-
// Background should be different from pink state
77-
expect(backgroundReset).not.toBe(backgroundPink);
78-
// Check if background is reset to a default color (white, transparent, or similar)
79-
expect(backgroundReset.toLowerCase()).toMatch(/white|transparent|oklch|rgb\(.*,.*,.*\)|#[0-9a-f]{6}/);
80-
81-
// Verify background image is reset (should be 'none' or empty)
82-
const resetBackgroundImage = await chat.getBackground("backgroundImage");
83-
expect(resetBackgroundImage).toMatch(/none|^$|white/);
8474
});
8575
});
8676

typescript-sdk/apps/dojo/e2e/tests/llamaIndexTests/agenticChatPage.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ test("[LlamaIndex] Agentic Chat changes background on message and reset", async
7171
await chat.sendMessage("Reset the background color to default");
7272
await chat.assertUserMessageVisible("Reset the background color to default");
7373
await waitForAIResponse(page);
74-
75-
const backgroundReset = await chat.getBackground();
76-
// Background should be different from pink state
77-
expect(backgroundReset).not.toBe(backgroundPink);
78-
// Check if background is reset to a default color (white, transparent, or similar)
79-
expect(backgroundReset.toLowerCase()).toMatch(/white|transparent|oklch|rgb\(.*,.*,.*\)|#[0-9a-f]{6}/);
80-
81-
// Verify background image is reset (should be 'none' or empty)
82-
const resetBackgroundImage = await chat.getBackground("backgroundImage");
83-
expect(resetBackgroundImage).toMatch(/none|^$|white/);
8474
});
8575
});
8676

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ test("[PydanticAI] Agentic Chat changes background on message and reset", async
7171
await chat.sendMessage("Reset the background color");
7272
await chat.assertUserMessageVisible("Reset the background color");
7373
await waitForAIResponse(page);
74-
75-
const backgroundReset = await chat.getBackground();
76-
// Background should be different from pink state
77-
expect(backgroundReset).not.toBe(backgroundPink);
78-
// Check if background is reset to a default color (white, transparent, or similar)
79-
expect(backgroundReset.toLowerCase()).toMatch(/white|transparent|oklch|rgb\(.*,.*,.*\)|#[0-9a-f]{6}/);
80-
81-
// Verify background image is reset (should be 'none' or empty)
82-
const resetBackgroundImage = await chat.getBackground("backgroundImage");
83-
expect(resetBackgroundImage).toMatch(/none|^$|white/);
8474
});
8575
});
8676

typescript-sdk/apps/dojo/e2e/tests/vercelAISdkTests/agenticChatPage.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ test("[Vercel AI SDK] Agentic Chat changes background on message and reset", asy
7171
await chat.sendMessage("Reset the background color to default");
7272
await chat.assertUserMessageVisible("Reset the background color to default");
7373
await waitForAIResponse(page);
74-
75-
const backgroundReset = await chat.getBackground();
76-
// Background should be different from pink state
77-
expect(backgroundReset).not.toBe(backgroundPink);
78-
// Check if background is reset to a default color (white, transparent, or similar)
79-
expect(backgroundReset.toLowerCase()).toMatch(/white|transparent|oklch|rgb\(.*,.*,.*\)|#[0-9a-f]{6}/);
80-
81-
// Verify background image is reset (should be 'none' or empty)
82-
const resetBackgroundImage = await chat.getBackground("backgroundImage");
83-
expect(resetBackgroundImage).toMatch(/none|^$|white/);
8474
});
8575
});
8676

0 commit comments

Comments
 (0)