From b5c9945692285ee74ca3100d8304f241a7ad6e4e Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:51:57 -0500 Subject: [PATCH] test: disable flaky `.capturePage()` specs (#41737) test: disable flaky .capturePage() specs Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- spec/webview-spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/webview-spec.ts b/spec/webview-spec.ts index 81410162a6a9..fb3be78041aa 100644 --- a/spec/webview-spec.ts +++ b/spec/webview-spec.ts @@ -14,8 +14,6 @@ import { HexColors, ScreenCapture } from './lib/screen-helpers'; declare let WebView: any; const features = process._linkedBinding('electron_common_features'); -const isMacArm64 = (process.platform === 'darwin' && process.arch === 'arm64'); - async function loadWebView (w: WebContents, attributes: Record, opts?: {openDevTools?: boolean}): Promise { const { openDevTools } = { openDevTools: false, @@ -2107,9 +2105,8 @@ describe(' tag', function () { } }); - // TODO(miniak): figure out why this is failing on windows - // TODO(vertedinde): figure out why this is failing on mac arm64 - ifdescribe(process.platform !== 'win32' && !isMacArm64)('.capturePage()', () => { + // FIXME: This test is flaking constantly on Linux and macOS. + xdescribe('.capturePage()', () => { it('returns a Promise with a NativeImage', async function () { this.retries(5);