(frontend) add EmojiPicker in DocumentTitle

We can now add emojis to the document title using
the EmojiPicker component.
This commit is contained in:
Olivier Laurendeau
2025-09-15 18:55:35 +02:00
committed by Anthony LC
parent b1d033edc9
commit 08f3ceaf3f
9 changed files with 205 additions and 58 deletions

View File

@@ -340,9 +340,11 @@ test.describe('Doc Tree', () => {
// Verify the emoji is updated in the tree and in the document title
await expect(row.getByText('😀')).toBeVisible();
await expect(
page.getByRole('textbox', { name: 'Document title' }),
).toContainText('😀');
const titleEmojiPicker = page
.locator('.--docs--doc-title')
.getByRole('button');
await expect(titleEmojiPicker).toHaveText('😀');
// Now remove the emoji using the new action
await row.hover();
@@ -350,9 +352,7 @@ test.describe('Doc Tree', () => {
await page.getByRole('menuitem', { name: 'Remove emoji' }).click();
await expect(row.getByText('😀')).toBeHidden();
await expect(
page.getByRole('textbox', { name: 'Document title' }),
).not.toContainText('😀');
await expect(titleEmojiPicker).not.toHaveText('😀');
});
});