feat!: unified migration logic in server electron, and browser (#4079)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
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);
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
"devDependencies": {
|
||||
"@affine-test/fixtures": "workspace:*",
|
||||
"@affine-test/kit": "workspace:*",
|
||||
"@blocksuite/block-std": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@playwright/test": "^1.37.1",
|
||||
"express": "^4.18.2",
|
||||
"http-proxy-middleware": "^3.0.0-beta.1",
|
||||
|
||||
Reference in new issue
Block a user