The best coding models, funded by ads instead of a subscription. No card, no credits to watch.
bun test auth --repeat 20
tests/helpers/login.ts
export async function login(page, user) {
await page.fill("#email", user.email)
await expect(page).toHaveCookie("session")
}
The test typed the email before the session cookie landed. Waiting on the cookie makes it deterministic.