From 3490f321cd96d4d95e5e830970238978f0b15095 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: Wed, 23 Oct 2024 16:55:47 -0400 Subject: [PATCH] hell --- packages/obsidian-testing-framework/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 3058cd8..d3752c7 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -79,11 +79,11 @@ const obsidianTestFixtures: Fixtures = { async ({ electronApp, obsidian: { vault } }, run) => { const windows = electronApp.windows(); console.log("windows", windows); - let page = windows.last()!; + let page = windows[windows.length - 1]!; await page.waitForEvent("load"); await page.waitForLoadState("domcontentloaded"); await selectNewVault(page, vault!); - page = electronApp.windows().last()!; + page = electronApp.windows()[electronApp.windows().length - 1]!; await page.waitForEvent("load"); await page.waitForLoadState("domcontentloaded"); await waitForIndexingComplete(await getApp(page));