🐛(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

@@ -134,7 +134,7 @@ test.describe('Config', () => {
await createDoc(page, 'doc-ai-feature', browserName, 1);
await page.locator('.bn-block-outer').last().fill('Anything');
await page.getByText('Anything').dblclick();
await page.getByText('Anything').selectText();
expect(
await page.locator('button[data-test="convertMarkdown"]').count(),
).toBe(1);