This commit is contained in:
parent
287a2f461e
commit
eb923088bb
@ -120,17 +120,14 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
|
|||||||
// console.log("windows", windows);
|
// console.log("windows", windows);
|
||||||
let page = windows[windows.length - 1]!;
|
let page = windows[windows.length - 1]!;
|
||||||
await page.waitForLoadState("domcontentloaded");
|
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 {
|
try {
|
||||||
await waitForIndexingComplete(page);
|
await waitForIndexingComplete(page);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.warn("timed out waiting for metadata cache. continuing...");
|
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 => {
|
page.on("pageerror", exc => {
|
||||||
console.error("EXCEPTION");
|
console.error("EXCEPTION");
|
||||||
console.error(exc);
|
console.error(exc);
|
||||||
|
Loading…
Reference in New Issue
Block a user