remove some unnecessary code
Some checks failed
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
parent 287a2f461e
commit eb923088bb
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -120,17 +120,14 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
// 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);