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:
1 parent
9b00e21c44
commit
469eedf593
1 file changed
+2
@@ -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))`);
|
||||
|
||||
Reference in new issue
Block a user