Put back the position on the .cm-content click

This commit is contained in:
Frank Noirot
2024-08-15 21:17:51 +02:00
parent 545e610bbc
commit 8f9bef922f

View File

@ -521,7 +521,7 @@ test.describe('Text-to-CAD tests', () => {
await expect(page.getByText('Copied')).toBeVisible() await expect(page.getByText('Copied')).toBeVisible()
// Click in the code editor. // Click in the code editor.
await page.locator('.cm-content').click() await page.locator('.cm-content').click({ position: { x: 10, y: 10 } })
// Paste the code. // Paste the code.
await page.keyboard.down(CtrlKey) await page.keyboard.down(CtrlKey)
@ -550,7 +550,7 @@ test.describe('Text-to-CAD tests', () => {
await expect(page.getByText('Copied')).toBeVisible() await expect(page.getByText('Copied')).toBeVisible()
// Click in the code editor. // Click in the code editor.
await page.locator('.cm-content').click() await page.locator('.cm-content').click({ position: { x: 10, y: 10 } })
// Paste the code. // Paste the code.
await page.keyboard.press('ControlOrMeta+a') await page.keyboard.press('ControlOrMeta+a')