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.

e2e follows tonight's changes: the grey stop, the Mac download percent, and toasts without a countdown bar

Eric Brownrout1460e3448dfb
diff --git a/app/e2e/chat.spec.ts b/app/e2e/chat.spec.ts
index 9657d7c2..ce5f7207 100644
--- a/app/e2e/chat.spec.ts
+++ b/app/e2e/chat.spec.ts
@@ -117,7 +117,8 @@ test('asking about a finished meeting streams the answer in, word by word, and i
// the stop button while it writes; new words fade in
await expect(page.getByTestId('chat-stop')).toBeVisible()
await expect(page.getByTestId('chat-stop')).toHaveAccessibleName('Stop')
- await expect(page.getByTestId('chat-stop')).toHaveCSS('color', 'rgb(255, 255, 255)')
+ // a quiet grey stop with an ink square, so typing ahead never looks ready to send
+ await expect(page.getByTestId('chat-stop')).toHaveCSS('color', 'rgb(41, 41, 44)')
await expect(page.getByTestId('chat-answer').locator('.fw').first()).toBeVisible()
await expect(turn).toHaveAttribute('data-status', 'done', { timeout: 15_000 })
const answer = page.getByTestId('chat-answer')
diff --git a/app/e2e/recordEverywhere.spec.ts b/app/e2e/recordEverywhere.spec.ts
index 5f0983bd..a75cfade 100644
--- a/app/e2e/recordEverywhere.spec.ts
+++ b/app/e2e/recordEverywhere.spec.ts
@@ -72,7 +72,7 @@ for (const platform of platforms) {
})
}
-test('a Mac waiting for the notes model says it is still downloading, without how far', async () => {
+test('a Mac waiting for the notes model says it is still downloading, and how far', async () => {
const app = await electron.launch({ args: [main], env: { ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: mkdtempSync(join(tmpdir(), 'yogurt-e2e-')), YOGURT_FAKE_NOTES_MODEL_MS: '16000' } })
try {
const page = await app.firstWindow()
@@ -80,7 +80,7 @@ test('a Mac waiting for the notes model says it is still downloading, without ho
await record(page)
await page.getByTestId('note-stop').click()
const wait = page.getByTestId('note-enhanced-model-download')
- await expect(wait).toHaveText('Yogurt is still downloading its AI model. Your notes will be ready in a few minutes.')
+ await expect(wait).toHaveText(/^Yogurt is still downloading its AI model\. Your notes will be ready in a few minutes\. \(\d+%\)$/)
await expect(page.getByText('Generating notes')).toHaveCount(0)
} finally { await app.close() }
})
diff --git a/app/e2e/recordingReminder.spec.ts b/app/e2e/recordingReminder.spec.ts
index ee2db127..2d92a670 100644
--- a/app/e2e/recordingReminder.spec.ts
+++ b/app/e2e/recordingReminder.spec.ts
@@ -25,11 +25,9 @@ for (const theme of ['light', 'dark'] as const) test(`standard recording reminde
await expect(toast).toHaveClass(/app-toast/)
await expect(page.locator('p.recording-reminder')).toHaveCount(0)
await expect(page.getByTestId('transcript-consent')).toHaveCount(0)
- const bar = toast.locator('[data-animate-ui-toast-progress-bar]')
- await expect(bar).toBeVisible()
- expect(await bar.evaluate(el => el.getAnimations()[0].effect!.getTiming().duration)).toBe(4000)
+ // no countdown bar; hovering holds it
+ await expect(toast.locator('[data-animate-ui-toast-progress-bar]')).toHaveCount(0)
await toast.hover()
- await expect.poll(() => bar.evaluate(el => el.getAnimations()[0].playState)).toBe('paused')
await page.screenshot({ path: info.outputPath(`reminder-${theme}-closed.png`) })
await page.getByTestId('chat-open').click()
await expect.poll(async () => {
@@ -42,13 +40,17 @@ for (const theme of ['light', 'dark'] as const) test(`standard recording reminde
await page.keyboard.press('F6')
await toast.getByRole('button', { name: 'Close', exact: true }).focus()
await page.mouse.move(0, 0)
- await expect.poll(() => bar.evaluate(el => el.getAnimations()[0].playState)).toBe('paused')
+ // the 4 s timer holds: past it, the reminder is still there
+ await page.waitForTimeout(4500)
+ await expect(toast).toBeVisible()
await page.getByTestId('chat-close').click()
await page.evaluate(() => {
Object.defineProperty(document, 'hasFocus', { configurable: true, value: () => false })
window.dispatchEvent(new Event('blur'))
})
- await expect.poll(() => bar.evaluate(el => el.getAnimations()[0].playState)).toBe('paused')
+ // the 4 s timer holds: past it, the reminder is still there
+ await page.waitForTimeout(4500)
+ await expect(toast).toBeVisible()
await page.evaluate(() => {
Object.defineProperty(document, 'hasFocus', { configurable: true, value: () => true })
window.dispatchEvent(new Event('focus'))
diff --git a/app/e2e/trash.spec.ts b/app/e2e/trash.spec.ts
index 38c0d14c..f2ace7d0 100644
--- a/app/e2e/trash.spec.ts
+++ b/app/e2e/trash.spec.ts
@@ -121,23 +121,18 @@ test('the toast countdown pauses on hover and focus, then dismisses when time ru
})
await del(page, 'Weekly sync')
const toast = page.getByTestId('trash-toast')
- const bar = toast.locator('[data-animate-ui-toast-progress-bar]')
- await expect(bar).toBeVisible()
- const remaining = () => bar.evaluate(el => Number(el.getAnimations()[0].currentTime))
- const initial = await remaining()
- await expect.poll(remaining).toBeGreaterThan(initial + 150)
+ // no countdown bar; its 6 s timer holds while hovered or focused
+ await expect(toast).toBeVisible()
+ await expect(toast.locator('[data-animate-ui-toast-progress-bar]')).toHaveCount(0)
await toast.hover()
- await expect.poll(() => bar.evaluate(el => el.getAnimations()[0].playState)).toBe('paused')
- const hovered = await remaining()
- await page.waitForTimeout(250)
- expect(await remaining()).toBe(hovered)
+ await page.waitForTimeout(6500)
+ await expect(toast).toBeVisible()
await page.keyboard.press('F6')
await page.getByTestId('trash-undo').focus()
await page.mouse.move(0, 0)
- await page.waitForTimeout(250)
- expect(await remaining()).toBe(hovered)
+ await page.waitForTimeout(6500)
+ await expect(toast).toBeVisible()
await page.getByTestId('search-open').focus()
- await expect.poll(remaining).toBeGreaterThan(hovered + 150)
await expect(toast).toHaveCount(0, { timeout: 10_000 })
await page.getByTestId('nav-trash').click()
await expect(page.getByTestId('trash-row')).toContainText('Weekly sync')