From eb923088bb53643ce52e61c861823c294028a2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 24 Oct 2024 20:41:17 -0400 Subject: [PATCH] remove some unnecessary code --- packages/obsidian-testing-framework/src/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 3f9d83a..8db2515 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -120,17 +120,14 @@ const obsidianTestFixtures: Fixtures = { // console.log("windows", windows); let page = windows[windows.length - 1]!; await page.waitForLoadState("domcontentloaded"); - page = electronApp.windows()[electronApp.windows().length - 1]!; - await page.waitForEvent("load"); - await page.waitForLoadState("domcontentloaded"); - for(let fn of Object.entries(pageUtils)) { - await page.exposeFunction(fn[0], fn[1]); - } try { await waitForIndexingComplete(page); } catch(e) { console.warn("timed out waiting for metadata cache. continuing..."); } + for(let fn of Object.entries(pageUtils)) { + await page.exposeFunction(fn[0], fn[1]); + } page.on("pageerror", exc => { console.error("EXCEPTION"); console.error(exc);