fix tests on textInputOutput drag handles

This commit is contained in:
cristhianzl 2024-06-27 03:00:47 -03:00
commit c53c030a70

View file

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