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:
parent
6c1928adb6
commit
d4bf1d5e56
2 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue