test: fixup visibility tests (#44802)
* test: ensure all webContents are closed * test: ensure all webContents are closed * test: fixup api-web-request-spec.ts
This commit is contained in:
parent
433a7b69e3
commit
85a0240b5c
3 changed files with 12 additions and 6 deletions
|
@ -8,7 +8,11 @@ import { defer } from './lib/spec-helpers';
|
|||
import { closeAllWindows } from './lib/window-helpers';
|
||||
|
||||
describe('WebContentsView', () => {
|
||||
afterEach(closeAllWindows);
|
||||
afterEach(async () => {
|
||||
await closeAllWindows();
|
||||
const existingWCS = webContents.getAllWebContents();
|
||||
existingWCS.forEach((contents) => contents.close());
|
||||
});
|
||||
|
||||
it('can be instantiated with no arguments', () => {
|
||||
// eslint-disable-next-line no-new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue