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.

fix windows tests

Elton C. Rego2d29c6239eda
diff --git a/app/e2e/windowChrome.spec.ts b/app/e2e/windowChrome.spec.ts
index 21da426d..690dd05a 100644
--- a/app/e2e/windowChrome.spec.ts
+++ b/app/e2e/windowChrome.spec.ts
@@ -21,7 +21,7 @@ test('glass is limited to chrome, with solid reading surfaces and a reduced-tran
{ name: 'prefers-contrast', value: 'no-preference' },
] })
const chrome = await page.locator('.workspace').evaluate(el => ({ background: getComputedStyle(el).backgroundColor, opacity: getComputedStyle(el).opacity }))
- expect(chrome.background).toContain('0.6')
+ expect(chrome.background).toContain('0.85')
expect(chrome.opacity).toBe('1')
for (const selector of ['html', 'body', '#root', '[data-testid=app-shell]']) {
expect(await page.locator(selector).evaluate(el => getComputedStyle(el).backgroundColor)).toBe('rgba(0, 0, 0, 0)')
diff --git a/app/test/libraryRetrieve.test.ts b/app/test/libraryRetrieve.test.ts
index 0d179f82..d45f743b 100644
--- a/app/test/libraryRetrieve.test.ts
+++ b/app/test/libraryRetrieve.test.ts
@@ -107,6 +107,8 @@ describe('speed', () => {
dirs.push(d)
const store = openStore(join(d, 'yogurt.db'))
stores.push(store)
+ // seeding commits ~3000 times; a sync per commit takes over a minute on GitHub's Windows runners
+ store.db.exec('PRAGMA synchronous = OFF')
const library = new Library(store.db)
const dims = 512
const rand = () => Float32Array.from({ length: dims }, () => Math.random() - 0.5)