test: fix flaky BrowserView test (#49316)

* test: fix flaky BrowserWindow test

* fix: improved as per review
This commit is contained in:
Kanishk Ranjan
2026-01-29 01:24:35 +05:30
committed by GitHub
parent e6be04a7a0
commit 82d350524e

View File

@@ -90,7 +90,7 @@ describe('BrowserView module', () => {
w.show();
w.setBounds(display.bounds);
w.setBackgroundColor(WINDOW_BACKGROUND_COLOR);
await w.loadURL('about:blank');
await w.loadURL('data:text/html,<html></html>');
view = new BrowserView();
view.setBounds(display.bounds);
@@ -109,7 +109,7 @@ describe('BrowserView module', () => {
w.show();
w.setBounds(display.bounds);
w.setBackgroundColor(WINDOW_BACKGROUND_COLOR);
await w.loadURL('about:blank');
await w.loadURL('data:text/html,<html></html>');
view = new BrowserView();
view.setBounds(display.bounds);