Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Tests: the retention check reads the setting itself, not the loading view's copy of its words, and the chat list's time is measured once every row's animation has settled

christianmat39ba1d91218c
diff --git a/app/e2e/deleteRecording.spec.ts b/app/e2e/deleteRecording.spec.ts
index 4f57b384..09b81fc5 100644
--- a/app/e2e/deleteRecording.spec.ts
+++ b/app/e2e/deleteRecording.spec.ts
@@ -137,7 +137,8 @@ test('turning retention off leaves older recordings even when their summaries ar
try {
const id = await fake<string>(app, 'bigMeeting', 4)
await page.getByTestId('settings-open').click()
- await expect(page.getByText("When off, new meetings' audio is deleted once the summary is saved.")).toBeVisible()
+ // inside the setting itself: the loading view shows the same words for a moment
+ await expect(page.getByTestId('recording-setting').getByText("When off, new meetings' audio is deleted once the summary is saved.")).toBeVisible()
await page.getByTestId('keep-recordings-toggle').click()
await expect(page.getByTestId('keep-recordings-toggle')).toHaveAttribute('aria-checked', 'false')
await page.evaluate(id => window.yogurt.notes.writeAgain(id), id)
diff --git a/app/e2e/libraryChat.spec.ts b/app/e2e/libraryChat.spec.ts
index d3ba3c3e..8f337110 100644
--- a/app/e2e/libraryChat.spec.ts
+++ b/app/e2e/libraryChat.spec.ts
@@ -141,11 +141,14 @@ test('a follow-up stays in the chat; New chat starts another; chats can be renam
const recentTime = recentRow.locator('time')
await expect(recentTime).toHaveCSS('opacity', '1')
await expect(recentRow.getByTestId('chat-menu')).toHaveCSS('opacity', '0')
- await page.getByTestId('chat-recent-list').evaluate(el => Promise.allSettled(el.getAnimations().map(a => a.finished)))
+ // the rows animate in too: every animation in the list settles before the time is measured
+ const settled = () => page.getByTestId('chat-recent-list').evaluate(el => Promise.allSettled(el.getAnimations({ subtree: true }).map(a => a.finished)))
+ await settled()
const timeBox = await recentTime.boundingBox()
await page.getByTestId('chat-history-item').nth(1).hover()
await expect(recentTime).toHaveCSS('opacity', '0')
await expect(recentRow.getByTestId('chat-menu')).toHaveCSS('opacity', '1')
+ await settled()
// the time fades out in place: it no longer slides (sliding text jittered)
expect(await recentTime.boundingBox()).toEqual(timeBox)
await page.locator('.ask-history-row').nth(1).getByTestId('chat-menu').click()