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:
pengx17
2024-03-30 08:00:21 +00:00
parent 822bbb54a4
commit f41d587d65
7 changed files with 304 additions and 232 deletions

View File

@@ -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()) ||