refactor(core): improve scroll anchoring logic (#8269)

Upstreams: https://github.com/toeverything/blocksuite/pull/8378
This commit is contained in:
fundon
2024-09-19 02:58:11 +00:00
parent 03ac9bc4a1
commit 6921c3073c
4 changed files with 39 additions and 110 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ test('can use cmdk to search page content and scroll to it, then the block will
);
expect(isVisitable).toBe(true);
const selectionElement = page.locator(
'affine-block-selection[style*="display: block;"]'
'affine-scroll-anchoring-widget div.highlight'
);
await expect(selectionElement).toBeVisible();
});