🐛(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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user