mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
feat(core): bump blocksuite (#7019)
## Features - https://github.com/toeverything/BlockSuite/pull/7075 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7090 @doouding - https://github.com/toeverything/BlockSuite/pull/7095 @golok727 ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7108 @fundon - https://github.com/toeverything/BlockSuite/pull/7110 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7105 @regischen - https://github.com/toeverything/BlockSuite/pull/7064 @fundon - https://github.com/toeverything/BlockSuite/pull/7102 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7091 @zzj3720 ## Refactor - https://github.com/toeverything/BlockSuite/pull/7088 @Mirone ## Misc - https://github.com/toeverything/BlockSuite/pull/7097 @CatsJuice
This commit is contained in:
@@ -237,7 +237,7 @@ test('can sync svg between different browsers', async ({ page, browser }) => {
|
||||
const slashMenu = page.locator(`.slash-menu`);
|
||||
const image = page.locator('affine-image');
|
||||
|
||||
page.evaluate(async () => {
|
||||
await page.evaluate(async () => {
|
||||
// https://github.com/toeverything/blocksuite/blob/master/packages/blocks/src/_common/utils/filesys.ts#L20
|
||||
(window as any).showOpenFilePicker = undefined;
|
||||
});
|
||||
@@ -252,11 +252,10 @@ test('can sync svg between different browsers', async ({ page, browser }) => {
|
||||
await expect(slashMenu).toBeVisible();
|
||||
await page.keyboard.type('image', { delay: 100 });
|
||||
await expect(slashMenu).toBeVisible();
|
||||
const fileChooserPromise = page.waitForEvent('filechooser');
|
||||
await page.keyboard.press('Enter', { delay: 50 });
|
||||
await page.setInputFiles(
|
||||
"input[type='file']",
|
||||
resolve(__dirname, 'logo.svg')
|
||||
);
|
||||
const fileChooser = await fileChooserPromise;
|
||||
fileChooser.setFiles(resolve(__dirname, 'logo.svg'));
|
||||
await expect(image).toBeVisible();
|
||||
|
||||
// the user should see the svg
|
||||
|
||||
Reference in New Issue
Block a user