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

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

@ -45,7 +45,7 @@ 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[],
}); });
electronApp.waitForEvent("window"); 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())))