feat!: unified migration logic in server electron, and browser (#4079)

Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
Alex YangandMirone authored and GitHub committed 2023-09-06 07:44:53 +00:00
1 parent 925c18300f
commit 1b6a78cd00
61 files changed
+10776 -10267

No files matched your search

@@ -32,17 +32,17 @@ test('database migration', async ({ page, context }) => {
await page.keyboard.press('a', { delay: 50 });
await page.keyboard.press('Enter', { delay: 50 });
const url = page.url();
await switchToNext();
await page.waitForTimeout(1000);
await page.goto('http://localhost:8081/');
await page.click('text=hello');
await page.goto(url);
await waitForEditorLoad(page);
// check page mode is correct
expect(await page.locator('v-line').nth(0).textContent()).toBe('hello');
expect(await page.locator('affine-database').isVisible()).toBe(true);
// check edgeless mode is correct
await page.getByTestId('switch-edgeless-mode-button').click();
await clickEdgelessModeButton(page);
await page.waitForTimeout(200);
expect(await page.locator('affine-database').isVisible()).toBe(true);