test: fix flaky BrowserWindow test (#49364)

test: fix flaky BrowserWindow test
This commit is contained in:
Kanishk Ranjan
2026-01-28 11:17:02 +05:30
committed by GitHub
parent 8364b62f68
commit 3820d3ae6c

View File

@@ -6933,7 +6933,7 @@ describe('BrowserWindow module', () => {
hasShadow: false
});
await backgroundWindow.loadURL('about:blank');
await backgroundWindow.loadURL('data:text/html,<html></html>');
const foregroundWindow = new BrowserWindow({
...display.bounds,
@@ -6974,7 +6974,7 @@ describe('BrowserWindow module', () => {
hasShadow: false
});
await backgroundWindow.loadURL('about:blank');
await backgroundWindow.loadURL('data:text/html,<html></html>');
const foregroundWindow = new BrowserWindow({
...display.bounds,
@@ -7027,7 +7027,7 @@ describe('BrowserWindow module', () => {
backgroundColor: HexColors.BLUE
});
w.loadURL('about:blank');
w.loadURL('data:text/html,<html></html>');
await once(w, 'ready-to-show');
const screenCapture = new ScreenCapture(display);