test: move some BrowserWindow specs to the main runner (#18551)
This commit is contained in:
parent
cf628d9287
commit
901cdb22e3
6 changed files with 564 additions and 442 deletions
|
@ -30,9 +30,12 @@ export const closeWindow = async (
|
|||
|
||||
if (assertNotWindows) {
|
||||
const windows = BrowserWindow.getAllWindows()
|
||||
for (const win of windows) {
|
||||
await ensureWindowIsClosed(win)
|
||||
try {
|
||||
expect(windows).to.have.lengthOf(0)
|
||||
} finally {
|
||||
for (const win of windows) {
|
||||
await ensureWindowIsClosed(win)
|
||||
}
|
||||
}
|
||||
expect(windows).to.have.lengthOf(0)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue