🐛(frontend) fix selection click past end of content

On Chrome, when we click at the end of a line,
the cursor is placed at the beginning of the line.
We fix this behavior, now the cursor is placed
at the end of the line.
This commit is contained in:
Anthony LC
2025-04-03 23:56:29 +02:00
committed by Anthony LC
parent c11d59c434
commit 8c0c3c2f44
5 changed files with 19 additions and 11 deletions

View File

@@ -86,7 +86,7 @@ test.describe('Document search', () => {
const editor = page.locator('.ProseMirror');
await editor.click();
await editor.fill('Hello world');
await editor.getByText('Hello world').dblclick();
await editor.getByText('Hello world').selectText();
await page.keyboard.press('Control+k');
await expect(page.getByRole('textbox', { name: 'Edit URL' })).toBeVisible();