From 90754e5fd27855f86b667ae84f911ee4808dab14 Mon Sep 17 00:00:00 2001 From: Sam Maddock Date: Mon, 20 Jan 2025 03:54:26 -0500 Subject: [PATCH] test: quit Finder (#45239) --- spec/api-browser-window-spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/api-browser-window-spec.ts b/spec/api-browser-window-spec.ts index a1657f76c619..94f627ee2389 100755 --- a/spec/api-browser-window-spec.ts +++ b/spec/api-browser-window-spec.ts @@ -1272,6 +1272,7 @@ describe('BrowserWindow module', () => { // We first need to resign app focus for this test to work const isInactive = once(app, 'did-resign-active'); childProcess.execSync('osascript -e \'tell application "Finder" to activate\''); + defer(() => childProcess.execSync('osascript -e \'tell application "Finder" to quit\'')); await isInactive; // Create new window