test: quit Finder (#45239)
This commit is contained in:
parent
0e5fe3fa60
commit
90754e5fd2
1 changed files with 1 additions and 0 deletions
|
@ -1272,6 +1272,7 @@ describe('BrowserWindow module', () => {
|
||||||
// We first need to resign app focus for this test to work
|
// We first need to resign app focus for this test to work
|
||||||
const isInactive = once(app, 'did-resign-active');
|
const isInactive = once(app, 'did-resign-active');
|
||||||
childProcess.execSync('osascript -e \'tell application "Finder" to activate\'');
|
childProcess.execSync('osascript -e \'tell application "Finder" to activate\'');
|
||||||
|
defer(() => childProcess.execSync('osascript -e \'tell application "Finder" to quit\''));
|
||||||
await isInactive;
|
await isInactive;
|
||||||
|
|
||||||
// Create new window
|
// Create new window
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue