Frontier models, for free
The best coding models, funded by ads instead of a subscription. No card, no credits to watch.
Fix the flaky auth test
The auth test fails about one run in five
Worked for 1m 12s
Run
bun test auth --repeat 204 failedRead
tests/helpers/login.tsEdit
tests/helpers/login.tstests/helpers/login.ts+2−1
export async function login(page, user) { await page.fill("#email", user.email) await page.fill("#email", user.email) await expect(page).toHaveCookie("session")}Run
bun test auth --repeat 2020 passedThe test typed the email before the session cookie landed. Waiting on the cookie makes it deterministic.
9:41
The auth test fails about one run in five
Worked for 1m 12s
Runbun test auth --repeat 204 failed
Readtests/helpers/login.ts
Edittests/helpers/login.ts
login.ts+2−1
await page.fill("#email", user.email)await page.fill("#email", user.email)await expect(page).toHaveCookie("session")Runbun test auth --repeat 2020 passed
The test typed the email before the session cookie landed. Waiting on the cookie makes it deterministic.
Ask Freebuff…
Claude Haiku 5.5High