test: open a folder before reaching its rows (the tree draws them lazily)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Your NameandClaude Sonnet 5.5 committed 2026-10-15 12:00:39 +02:00
1 parent 9b00e21c44
commit 469eedf593
1 file changed
+2
+2
View File
@@ -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))`);