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:
@ -39,12 +39,12 @@ test.describe('Testing selections', { tag: ['@skipWin'] }, () => {
|
|||||||
})
|
})
|
||||||
const emptySpaceHover = () =>
|
const emptySpaceHover = () =>
|
||||||
test.step('Hover over empty space', async () => {
|
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()
|
await expect(page.locator('.hover-highlight')).not.toBeVisible()
|
||||||
})
|
})
|
||||||
const emptySpaceClick = () =>
|
const emptySpaceClick = () =>
|
||||||
test.step(`Click in empty space`, async () => {
|
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(
|
await expect(page.locator('.cm-line').last()).toHaveClass(
|
||||||
/cm-activeLine/
|
/cm-activeLine/
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user