Browse Source

test: disable newly added tests on WOA (#33143)

* tests: disable newly added tests on WOA

* test: also disable test on arm64 macOS
John Kleinschmidt 3 years ago
parent
commit
f45aaea537
1 changed files with 4 additions and 4 deletions
  1. 4 4
      spec-main/api-browser-window-spec.ts

+ 4 - 4
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({