From c53c030a704c45322304c1520d9478f637fc14c8 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 27 Jun 2024 03:00:47 -0300 Subject: [PATCH] fix tests on textInputOutput drag handles --- src/frontend/tests/end-to-end/textInputOutput.spec.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/tests/end-to-end/textInputOutput.spec.ts b/src/frontend/tests/end-to-end/textInputOutput.spec.ts index 199941164..085427029 100644 --- a/src/frontend/tests/end-to-end/textInputOutput.spec.ts +++ b/src/frontend/tests/end-to-end/textInputOutput.spec.ts @@ -89,16 +89,13 @@ test("TextInputOutputComponent", async ({ page }) => { component1.blur(); component2.blur(); - // Click and hold on the first element and move to the second element - await element1?.dragTo(element2); - await page.mouse.up(); await element1.hover(); await page.mouse.down(); // Move to the second element - await component2.hover(); + await element2.hover(); // Release the mouse await page.mouse.up(); @@ -121,6 +118,8 @@ test("TextInputOutputComponent", async ({ page }) => { await page.getByTitle("zoom out").click(); await page.getByTitle("zoom out").click(); + + const component3 = await page.locator( '//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[3]', ); @@ -137,8 +136,6 @@ test("TextInputOutputComponent", async ({ page }) => { component2.blur(); component3.blur(); - // Click and hold on the first element and move to the second element - await element4?.dragTo(element3); await page.mouse.up();