From 469eedf593a9dabe16b1a1fed6561ef47a299135 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 15 Oct 2026 12:00:39 +0200 Subject: [PATCH] test: open a folder before reaching its rows (the tree draws them lazily) Co-Authored-By: Claude Sonnet 5.5 --- test/e2e-cover.test.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e-cover.test.cjs b/test/e2e-cover.test.cjs index 5dbf2f9..f59a483 100644 --- a/test/e2e-cover.test.cjs +++ b/test/e2e-cover.test.cjs @@ -88,6 +88,8 @@ app.whenReady().then(async () => { check('...and the front matter still names it', /cover: dropped\.png/.test(fm('Folder/Note.md'))); // back to a gradient + await js(`document.querySelector('.row[data-id="Folder"]')?.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true }))`); // folders draw their rows when first opened + await sleep(400); await js(`document.querySelector('.row[data-id="Folder/Note"], .row[data-id="Folder"]')?.click()`); await sleep(600); await js(`await new Promise((r) => setTimeout(r, 200))`);