diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 33995bd..3e5836e 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -45,7 +45,6 @@ const obsidianTestFixtures: Fixtures = { !!vault && `obsidian://open?vault=${encodeURI(vault)}`, ].filter((a) => !!a) as string[], }); - await electronApp.waitForEvent("window"); electronApp.on("console", async (msg) => { console.log( ...(await Promise.all(msg.args().map((a) => a.jsonValue()))) @@ -60,7 +59,7 @@ const obsidianTestFixtures: Fixtures = { page: [ async ({ electronApp }, run) => { const page = await electronApp.firstWindow(); - // await page.waitForEvent("load") + await page.waitForEvent("load") await page.waitForLoadState("domcontentloaded"); await waitForIndexingComplete(await getApp(page)); page.on("console", async (msg) => {