fix tests on textInputOutput drag handles
This commit is contained in:
parent
65ea7bede3
commit
c53c030a70
1 changed files with 3 additions and 6 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue