feat: migrate to database v3 (#3528)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-08-02 16:50:10 -07:00
1 parent 28a496bc67
commit 32c08e49c5
33 files changed
+410 -282

No files matched your search

@@ -63,24 +63,6 @@ test('init page', async ({ page, context }) => {
const locator = page.locator('v-line').nth(0);
await locator.fill('hello');
const currentWorkspaceId: string = await page.evaluate(
() => (globalThis as any).currentWorkspace.id
);
const downloadPromise = page.waitForEvent('download');
await page.evaluate(() => {
const workspace = (globalThis as any).currentWorkspace.blockSuiteWorkspace;
workspace.exportYDoc();
});
const download = await downloadPromise;
const output = resolve(
__dirname,
'..',
'fixtures',
currentWorkspaceId + '.ydoc'
);
await download.saveAs(output);
await switchToNext();
await page.waitForTimeout(1000);
await page.goto('http://localhost:8081/');