fix: E2E test assumes codemirror error is present when it is lazy loaded (#5446)
* fix: test is written incorrectly, assumes codemirror has DOM content when it does not * fix: auto fmt fixes
This commit is contained in:
		@ -117,7 +117,7 @@ test(
 | 
			
		||||
test(
 | 
			
		||||
  'open a file in a project works and renders, open another file in different project with errors, it should clear the scene',
 | 
			
		||||
  { tag: '@electron' },
 | 
			
		||||
  async ({ context, page }, testInfo) => {
 | 
			
		||||
  async ({ context, page, editor }, testInfo) => {
 | 
			
		||||
    await context.folderSetupFn(async (dir) => {
 | 
			
		||||
      const bracketDir = path.join(dir, 'bracket')
 | 
			
		||||
      await fsp.mkdir(bracketDir, { recursive: true })
 | 
			
		||||
@ -180,6 +180,11 @@ test(
 | 
			
		||||
 | 
			
		||||
      await page.getByText('broken-code').click()
 | 
			
		||||
 | 
			
		||||
      await page.waitForTimeout(2000)
 | 
			
		||||
      await editor.scrollToText(
 | 
			
		||||
        "|> line(end = [0, wallMountL], tag = 'outerEdge')"
 | 
			
		||||
      )
 | 
			
		||||
 | 
			
		||||
      // error in guter
 | 
			
		||||
      await expect(page.locator('.cm-lint-marker-error')).toBeVisible()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user