tests: change handle testid on URL Component (#7220)

 (tool-mode.spec.ts): update the test to use the correct test ID for clicking on a component in the toolset
🔧 (chatInputOutputUser-shard-1.spec.ts): add a 1-second timeout before running the flow to ensure proper execution timing
♻️ (chatInputOutputUser-shard-1.spec.ts): remove unnecessary timeout before deleting an edge in the test case
This commit is contained in:
Cristhian Zanforlin Lousa 2025-03-21 20:07:11 -03:00 committed by GitHub
commit d4bf1d5e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -132,7 +132,10 @@ test(
// Move the Agent node a bit
await page.getByTestId("handle-url-shownode-toolset-right").first().click();
await page
.getByTestId("handle-urlcomponent-shownode-toolset-right")
.first()
.click();
await page.getByTestId("handle-agent-shownode-tools-left").first().click();

View file

@ -115,6 +115,8 @@ test(
.nth(0)
.click();
await page.waitForTimeout(1000);
// Run flow and test text output inspection
await page.getByTestId("button_run_url").first().click();
await page.waitForSelector("text=built successfully", {
@ -185,7 +187,6 @@ test(
const dataEdge = await page.locator(".react-flow__edge").first();
await dataEdge.click();
await page.keyboard.press("Backspace");
await page.waitForTimeout(600);
await page.waitForTimeout(5000);