mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user