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