refactor(editor): image toolbar config extension (#11329)

Closes: [BS-2378](https://linear.app/affine-design/issue/BS-2378/image-toolbar-迁移)
This commit is contained in:
fundon
2025-04-01 10:04:28 +00:00
parent 032244ae61
commit 7af5e53838
26 changed files with 267 additions and 785 deletions
+6 -5
View File
@@ -35,12 +35,13 @@ test('should paste it as PNG after copying SVG', async ({ page }) => {
await svg.hover();
await page.waitForTimeout(500);
const imageToolbar = page.locator('affine-image-toolbar');
await expect(imageToolbar).toBeVisible();
await imageToolbar.getByRole('button', { name: 'More' }).click();
const toolbar = page.locator('affine-toolbar-widget editor-toolbar');
await expect(toolbar).toBeVisible();
const moveMenu = page.locator('.image-more-popup-menu');
await moveMenu.getByRole('button', { name: /^Copy$/ }).click();
const moreMenu = toolbar.getByLabel('More menu');
await moreMenu.click();
await moreMenu.getByRole('button', { name: /^Copy$/ }).click();
await svg.click();