mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: upgrade cmdk to 1.0.0 (#6401)
Also include the command score into our own repo for some tweaks. Might fix https://github.com/toeverything/AFFiNE/issues/6322
This commit is contained in:
@@ -26,7 +26,7 @@ const insertInputText = async (page: Page, text: string) => {
|
||||
const keyboardDownAndSelect = async (page: Page, label: string) => {
|
||||
await page.keyboard.press('ArrowDown');
|
||||
const selectedEl = page.locator(
|
||||
'[cmdk-item][data-selected] [data-testid="cmdk-label"]'
|
||||
'[cmdk-item][data-selected="true"] [data-testid="cmdk-label"]'
|
||||
);
|
||||
if (
|
||||
!(await selectedEl.isVisible()) ||
|
||||
|
||||
Reference in New Issue
Block a user