From fcad23afa9cc17969c5074ee04e968906b7e1963 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 15 Oct 2026 12:01:00 +0200 Subject: [PATCH] test: daily e2e opens the Notes tab of Settings Co-Authored-By: Claude Sonnet 5.5 --- test/e2e-daily.test.cjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e-daily.test.cjs b/test/e2e-daily.test.cjs index d4feffd..3323694 100644 --- a/test/e2e-daily.test.cjs +++ b/test/e2e-daily.test.cjs @@ -50,6 +50,8 @@ app.whenReady().then(async () => { // choose another folder in Settings await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`); await sleep(500); + await js(`[...document.querySelectorAll('.set-nav button')].find((b) => b.textContent.includes('Notes')).click()`); + await sleep(300); check('Settings shows the folder it found', (await js(`return document.querySelector('input[aria-label="Daily notes folder"]')?.placeholder`)) === 'Private/Daily'); const field = await box(`document.querySelector('input[aria-label="Daily notes folder"]')`); await click(field.cx, field.cy); @@ -88,6 +90,8 @@ app.whenReady().then(async () => { // back to automatic await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`); await sleep(500); + await js(`[...document.querySelectorAll('.set-nav button')].find((b) => b.textContent.includes('Notes')).click()`); + await sleep(300); await js(`document.querySelector('.set-link').click()`); await sleep(500); check('"Find it automatically" goes back', (await js(`return document.querySelector('input[aria-label="Daily notes folder"]').value`)) === '' && saved().vaults[vkey].dailyFolder === null);