test: disable flaky <webview>.capturePage() specs (#41713)
		
	test: disable flaky <webview>.capturePage() specs
This commit is contained in:
		
					parent
					
						
							
								61457c9498
							
						
					
				
			
			
				commit
				
					
						62d4b21819
					
				
			
		
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
					@ -14,8 +14,6 @@ import { HexColors, ScreenCapture } from './lib/screen-helpers';
 | 
				
			||||||
declare let WebView: any;
 | 
					declare let WebView: any;
 | 
				
			||||||
const features = process._linkedBinding('electron_common_features');
 | 
					const features = process._linkedBinding('electron_common_features');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const isMacArm64 = (process.platform === 'darwin' && process.arch === 'arm64');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
async function loadWebView (w: WebContents, attributes: Record<string, string>, opts?: {openDevTools?: boolean}): Promise<void> {
 | 
					async function loadWebView (w: WebContents, attributes: Record<string, string>, opts?: {openDevTools?: boolean}): Promise<void> {
 | 
				
			||||||
  const { openDevTools } = {
 | 
					  const { openDevTools } = {
 | 
				
			||||||
    openDevTools: false,
 | 
					    openDevTools: false,
 | 
				
			||||||
| 
						 | 
					@ -2107,9 +2105,8 @@ describe('<webview> tag', function () {
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TODO(miniak): figure out why this is failing on windows
 | 
					    // FIXME: This test is flaking constantly on Linux and macOS.
 | 
				
			||||||
    // TODO(vertedinde): figure out why this is failing on mac arm64
 | 
					    xdescribe('<webview>.capturePage()', () => {
 | 
				
			||||||
    ifdescribe(process.platform !== 'win32' && !isMacArm64)('<webview>.capturePage()', () => {
 | 
					 | 
				
			||||||
      it('returns a Promise with a NativeImage', async function () {
 | 
					      it('returns a Promise with a NativeImage', async function () {
 | 
				
			||||||
        this.retries(5);
 | 
					        this.retries(5);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue