This commit is contained in:
parent
9d2355a9fe
commit
949ee31a40
@ -53,13 +53,14 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await run(electronApp);
|
await run(electronApp);
|
||||||
|
await electronApp.close();
|
||||||
},
|
},
|
||||||
{ timeout: 60000 },
|
{ timeout: 60000 },
|
||||||
],
|
],
|
||||||
page: [
|
page: [
|
||||||
async ({ electronApp }, run) => {
|
async ({ electronApp }, run) => {
|
||||||
const page = await electronApp.firstWindow();
|
const page = await electronApp.firstWindow();
|
||||||
await page.waitForEvent("load")
|
// await page.waitForEvent("load")
|
||||||
await page.waitForLoadState("domcontentloaded");
|
await page.waitForLoadState("domcontentloaded");
|
||||||
await waitForIndexingComplete(await getApp(page));
|
await waitForIndexingComplete(await getApp(page));
|
||||||
page.on("console", async (msg) => {
|
page.on("console", async (msg) => {
|
||||||
@ -68,7 +69,6 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
await run(page);
|
await run(page);
|
||||||
await electronApp.close();
|
|
||||||
},
|
},
|
||||||
{ timeout: 30000 },
|
{ timeout: 30000 },
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user