mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 01:49:51 +08:00
refactor(core): improve scroll anchoring logic (#8269)
Upstreams: https://github.com/toeverything/blocksuite/pull/8378
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user