sighs
Some checks failed
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
parent d0cd37f04d
commit c32d8397c9
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -45,7 +45,6 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
!!vault && `obsidian://open?vault=${encodeURI(vault)}`, !!vault && `obsidian://open?vault=${encodeURI(vault)}`,
].filter((a) => !!a) as string[], ].filter((a) => !!a) as string[],
}); });
await electronApp.waitForEvent("window");
electronApp.on("console", async (msg) => { electronApp.on("console", async (msg) => {
console.log( console.log(
...(await Promise.all(msg.args().map((a) => a.jsonValue()))) ...(await Promise.all(msg.args().map((a) => a.jsonValue())))
@ -60,7 +59,7 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
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) => {