From 484ff19bb2789cbeaec0769277d5b5b9a57f1f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Wed, 15 Jul 2026 17:11:14 +0800 Subject: [PATCH] test: search wikilink smoke fixture before opening --- tests/smoke/wikilink-path-fix.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/smoke/wikilink-path-fix.spec.ts b/tests/smoke/wikilink-path-fix.spec.ts index 5161674..e3d8767 100644 --- a/tests/smoke/wikilink-path-fix.spec.ts +++ b/tests/smoke/wikilink-path-fix.spec.ts @@ -44,6 +44,12 @@ test.describe('Wikilink insertion and navigation', () => { await page.route('**/api/vault/ping', route => route.fulfill({ status: 503 })) await page.goto('/', { waitUntil: 'domcontentloaded' }) + await page.getByTitle('Search notes').click() + const searchInput = page.getByPlaceholder('Search notes...') + await expect(searchInput).toBeVisible({ timeout: 5000 }) + await searchInput.fill(SOURCE_NOTE_TITLE) + await expect(page.getByTestId('note-list-search-loading')).toHaveCount(0) + const noteItem = page.locator('.app__note-list .cursor-pointer').filter({ hasText: SOURCE_NOTE_TITLE }).first() await expect(noteItem).toBeVisible({ timeout: 10_000 }) await noteItem.click()