mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 19:40:30 +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
|
||||
|
||||
@@ -717,9 +717,7 @@ test('caption should be visible and different styles were applied if image zoome
|
||||
await importImage(page, 'http://localhost:8081/large-image.png');
|
||||
await page.locator('affine-page-image').first().hover();
|
||||
await page
|
||||
.locator('.embed-editing-state')
|
||||
.locator('icon-button')
|
||||
.nth(1)
|
||||
.locator('.affine-image-toolbar-container .image-toolbar-button.caption')
|
||||
.click();
|
||||
await page.getByPlaceholder('Write a caption').fill(sampleCaption);
|
||||
await page.locator('affine-page-image').first().dblclick();
|
||||
|
||||
Reference in New Issue
Block a user