fix tests on textInputOutput drag handles
This commit is contained in:
parent
e3e0c93dc0
commit
9d355005d3
1 changed files with 3 additions and 6 deletions
|
|
@ -89,16 +89,13 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
component1.blur();
|
component1.blur();
|
||||||
component2.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 page.mouse.up();
|
||||||
|
|
||||||
await element1.hover();
|
await element1.hover();
|
||||||
await page.mouse.down();
|
await page.mouse.down();
|
||||||
|
|
||||||
// Move to the second element
|
// Move to the second element
|
||||||
await component2.hover();
|
await element2.hover();
|
||||||
|
|
||||||
// Release the mouse
|
// Release the mouse
|
||||||
await page.mouse.up();
|
await page.mouse.up();
|
||||||
|
|
@ -121,6 +118,8 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
await page.getByTitle("zoom out").click();
|
await page.getByTitle("zoom out").click();
|
||||||
await page.getByTitle("zoom out").click();
|
await page.getByTitle("zoom out").click();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const component3 = await page.locator(
|
const component3 = await page.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[3]',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[3]',
|
||||||
);
|
);
|
||||||
|
|
@ -137,8 +136,6 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
component2.blur();
|
component2.blur();
|
||||||
component3.blur();
|
component3.blur();
|
||||||
|
|
||||||
// Click and hold on the first element and move to the second element
|
|
||||||
await element4?.dragTo(element3);
|
|
||||||
|
|
||||||
await page.mouse.up();
|
await page.mouse.up();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue