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 = () =>
 | 
			
		||||
      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/
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user