hell
Some checks failed
Playwright Tests / test (push) Failing after 2m23s

This commit is contained in:
parent 7a1ab0ceaf
commit 3490f321cd
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -79,11 +79,11 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
async ({ electronApp, obsidian: { vault } }, run) => { async ({ electronApp, obsidian: { vault } }, run) => {
const windows = electronApp.windows(); const windows = electronApp.windows();
console.log("windows", windows); console.log("windows", windows);
let page = windows.last()!; let page = windows[windows.length - 1]!;
await page.waitForEvent("load"); await page.waitForEvent("load");
await page.waitForLoadState("domcontentloaded"); await page.waitForLoadState("domcontentloaded");
await selectNewVault(page, vault!); await selectNewVault(page, vault!);
page = electronApp.windows().last()!; page = electronApp.windows()[electronApp.windows().length - 1]!;
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));