test: daily e2e opens the Notes tab of Settings

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:01:00 +02:00
1 parent 469eedf593
commit fcad23afa9
1 file changed
+4
+4
View File
@@ -50,6 +50,8 @@ app.whenReady().then(async () => {
// choose another folder in Settings // choose another folder in Settings
await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`); await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`);
await sleep(500); 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'); 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"]')`); const field = await box(`document.querySelector('input[aria-label="Daily notes folder"]')`);
await click(field.cx, field.cy); await click(field.cx, field.cy);
@@ -88,6 +90,8 @@ app.whenReady().then(async () => {
// back to automatic // back to automatic
await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`); await js(`[...document.querySelectorAll('.sidebar button')].find((b) => b.getAttribute('aria-label') === 'Settings').click()`);
await sleep(500); 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 js(`document.querySelector('.set-link').click()`);
await sleep(500); 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); check('"Find it automatically" goes back', (await js(`return document.querySelector('input[aria-label="Daily notes folder"]').value`)) === '' && saved().vaults[vkey].dailyFolder === null);