Fix testing-selections test / clicking on empty space (#6481)

fix clicking on empty space which happened to click on UI, causing the test to fail
This commit is contained in:
Andrew Varga
2025-04-24 19:46:07 +02:00
committed by GitHub
parent 8f61ee1d2f
commit 95f2caacab

View File

@ -39,12 +39,12 @@ test.describe('Testing selections', { tag: ['@skipWin'] }, () => {
})
const emptySpaceHover = () =>
test.step('Hover over empty space', async () => {
await page.mouse.move(700, 143, { steps: 5 })
await page.mouse.move(1000, 143, { steps: 5 })
await expect(page.locator('.hover-highlight')).not.toBeVisible()
})
const emptySpaceClick = () =>
test.step(`Click in empty space`, async () => {
await page.mouse.click(700, 143)
await page.mouse.click(1000, 143)
await expect(page.locator('.cm-line').last()).toHaveClass(
/cm-activeLine/
)