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();