feat: add navigation path in quick search (#1920)

This commit is contained in:
Qi authored and GitHub committed 2023-04-13 16:31:28 +08:00
1 parent f20a151e57
commit 7d64815aca
17 files changed
+450 -47

No files matched your search

+8
View File
@@ -1,6 +1,14 @@
import type { Page } from '@playwright/test';
import { getMetas } from './utils';
export async function openHomePage(page: Page) {
await page.goto('http://localhost:8080');
await page.waitForSelector('#__next');
}
export async function initHomePageWithPinboard(page: Page) {
await openHomePage(page);
await page.waitForSelector('[data-testid="sidebar-pinboard-container"]');
return (await getMetas(page)).find(m => m.isRootPinboard);
}