From f45aaea537411c124b8f8a782d335633d08b2137 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 7 Mar 2022 06:18:58 -0800 Subject: [PATCH] test: disable newly added tests on WOA (#33143) * tests: disable newly added tests on WOA * test: also disable test on arm64 macOS --- spec-main/api-browser-window-spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec-main/api-browser-window-spec.ts b/spec-main/api-browser-window-spec.ts index 8c9c45e60282..1e9405e0aa3c 100644 --- a/spec-main/api-browser-window-spec.ts +++ b/spec-main/api-browser-window-spec.ts @@ -4874,8 +4874,8 @@ describe('BrowserWindow module', () => { expect(w.getBounds()).to.deep.equal(newBounds); }); - // Linux doesn't return any capture sources. - ifit(process.platform !== 'linux')('should not display a visible background', async () => { + // Linux and arm64 platforms (WOA and macOS) do not return any capture sources + ifit(process.platform !== 'linux' && process.arch !== 'arm64')('should not display a visible background', async () => { const display = screen.getPrimaryDisplay(); const backgroundWindow = new BrowserWindow({ @@ -4916,8 +4916,8 @@ describe('BrowserWindow module', () => { describe('"backgroundColor" option', () => { afterEach(closeAllWindows); - // Linux doesn't return any capture sources. - ifit(process.platform !== 'linux')('should display the set color', async () => { + // Linux/WOA doesn't return any capture sources. + ifit(process.platform !== 'linux' && (process.platform !== 'win32' || process.arch !== 'arm64'))('should display the set color', async () => { const display = screen.getPrimaryDisplay(); const w = new BrowserWindow({