fix(core): search feature not working (#3902)

This commit is contained in:
Alex Yang
2023-08-22 19:38:02 -05:00
committed by GitHub
parent c7a4805e5c
commit 3b6e145b23
26 changed files with 288 additions and 250 deletions

View File

@@ -10,10 +10,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/blocks": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/global": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/store": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/block-std": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/blocks": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/global": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/store": "0.0.0-20230822230555-98129627-nightly",
"@playwright/test": "^1.37.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/blocks": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/global": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/store": "0.0.0-20230822202122-dba33658-nightly",
"@blocksuite/block-std": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/blocks": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/global": "0.0.0-20230822230555-98129627-nightly",
"@blocksuite/store": "0.0.0-20230822230555-98129627-nightly",
"@playwright/test": "^1.37.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -120,6 +120,16 @@ test('Create a new page and search this page', async ({ page }) => {
await page.keyboard.press('Enter');
await page.waitForTimeout(300);
await assertTitle(page, 'test123456');
await page.reload();
await waitEditorLoad(page);
await openQuickSearchByShortcut(page);
await page.keyboard.insertText('test123456');
await page.waitForTimeout(300);
await assertResultList(page, ['test123456']);
await page.keyboard.press('Enter');
await page.waitForTimeout(300);
await assertTitle(page, 'test123456');
});
test('Navigate to the 404 page and try to open quick search', async ({
page,