feat(editor): disable clickToDrag for edgeless toolbar shape and mindmap (#11310)

This commit is contained in:
CatsJuice committed 2025-04-04 05:10:05 +00:00
1 parent adbd41130c
commit 46d8d30e62
6 files changed
+51 -5

No files matched your search

@@ -166,6 +166,9 @@ test('add mindmap into frame, then drag root node of mindmap out.', async ({
const button = page.locator('edgeless-mindmap-tool-button');
await button.click();
const mindMapMenu = page.locator('edgeless-mindmap-menu');
const mindMapItem = mindMapMenu.locator('.mindmap-item').first();
await mindMapItem.click();
await toViewCoord(page, [100, 200]);
await clickView(page, [100, 200]);
const mindmapId = await getFirstContainerId(page, [frameId]);
@@ -198,6 +201,9 @@ test('add mindmap out of frame and add new node in frame then drag frame', async
const button = page.locator('edgeless-mindmap-tool-button');
await button.click();
const mindMapMenu = page.locator('edgeless-mindmap-menu');
const mindMapItem = mindMapMenu.locator('.mindmap-item').first();
await mindMapItem.click();
await toViewCoord(page, [20, 200]);
await clickView(page, [20, 200]);
await waitNextFrame(page, 100);
@@ -1212,6 +1212,9 @@ export async function triggerComponentToolbarAction(
case 'addMindmap': {
const button = page.locator('edgeless-mindmap-tool-button');
await button.click();
const mindMapMenu = page.locator('edgeless-mindmap-menu');
const mindMapItem = mindMapMenu.locator('.mindmap-item').first();
await mindMapItem.click();
await page.mouse.move(400, 400);
await page.mouse.click(400, 400);
break;