feat: add root pinboard & rename pivots to pinboard (#1843)

This commit is contained in:
Qi authored and GitHub committed 2023-04-07 21:55:59 +00:00
1 parent d4b2b9ab44
commit e50bf9fbfe
32 files changed
+836 -729

No files matched your search

+7
View File
@@ -1,3 +1,4 @@
import type { PageMeta } from '@blocksuite/store';
import { faker } from '@faker-js/faker';
import type { Page } from '@playwright/test';
@@ -123,3 +124,9 @@ export async function loginUser(
export async function openHomePage(page: Page) {
return page.goto('http://localhost:8080');
}
export async function getMetas(page: Page): Promise<PageMeta[]> {
return page.evaluate(
() => globalThis.currentWorkspace.blockSuiteWorkspace.meta.pageMetas ?? []
);
}