Browse Source

test: re-enable multi-window fullscreen test (#38119)

Shelley Vohr 2 years ago
parent
commit
05faabe9e8
1 changed files with 2 additions and 3 deletions
  1. 2 3
      spec/api-browser-window-spec.ts

+ 2 - 3
spec/api-browser-window-spec.ts

@@ -5536,14 +5536,13 @@ describe('BrowserWindow module', () => {
         expect(w.isFullScreen()).to.be.false('isFullScreen');
       });
 
-      // FIXME: https://github.com/electron/electron/issues/30140
-      xit('multiple windows inherit correct fullscreen state', async () => {
+      it('multiple windows inherit correct fullscreen state', async () => {
         const w = new BrowserWindow();
         const enterFullScreen = once(w, 'enter-full-screen');
         w.setFullScreen(true);
         await enterFullScreen;
         expect(w.isFullScreen()).to.be.true('isFullScreen');
-        await setTimeout();
+        await setTimeout(1000);
         const w2 = new BrowserWindow({ show: false });
         const enterFullScreen2 = once(w2, 'enter-full-screen');
         w2.show();