test: quit Finder (#45239)

This commit is contained in:
Sam Maddock 2025-01-20 03:54:26 -05:00 committed by GitHub
parent 0e5fe3fa60
commit 90754e5fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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