This commit is contained in:
parent
7a1ab0ceaf
commit
3490f321cd
@ -79,11 +79,11 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
|
||||
async ({ electronApp, obsidian: { vault } }, run) => {
|
||||
const windows = electronApp.windows();
|
||||
console.log("windows", windows);
|
||||
let page = windows.last()!;
|
||||
let page = windows[windows.length - 1]!;
|
||||
await page.waitForEvent("load");
|
||||
await page.waitForLoadState("domcontentloaded");
|
||||
await selectNewVault(page, vault!);
|
||||
page = electronApp.windows().last()!;
|
||||
page = electronApp.windows()[electronApp.windows().length - 1]!;
|
||||
await page.waitForEvent("load");
|
||||
await page.waitForLoadState("domcontentloaded");
|
||||
await waitForIndexingComplete(await getApp(page));
|
||||
|
Loading…
Reference in New Issue
Block a user