fix: move window.open postMessage test to main runner to fix flake (#18735)

This commit is contained in:
Jeremy Apthorp 2019-06-11 16:35:58 -07:00 committed by Cheng Zhao
parent 81ad355355
commit e5d1e7b4da
5 changed files with 35 additions and 22 deletions

View file

@ -39,3 +39,9 @@ export const closeWindow = async (
}
}
}
export async function closeAllWindows() {
for (const w of BrowserWindow.getAllWindows()) {
await closeWindow(w, {assertNotWindows: false})
}
}