diff options
| -rw-r--r-- | gui/test/e2e/utils.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/test/e2e/utils.ts b/gui/test/e2e/utils.ts index 0c68d47d49..d1ae6fa78a 100644 --- a/gui/test/e2e/utils.ts +++ b/gui/test/e2e/utils.ts @@ -15,6 +15,12 @@ export const startApp = async (mainPath: string): Promise<StartAppResponse> => { args: [mainPath], }); + await app.evaluate(({ webContents }) => { + return new Promise((resolve) => { + webContents.getAllWebContents()[0].on('did-finish-load', resolve); + }); + }); + const page = await app.firstWindow(); page.on('pageerror', (error) => { |
