fix(e2e): surface bunyip login error + stop login-bearing retries (BUNYIP-165) #184
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-165-login-error-surface-no-retry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two fixes from a staging login failure where setup login looped on "never navigated away from /login" while
auth-uipassed on retry with the same credentials (so the creds are valid; bunyip's 5/min-per-email login rate limit was rejecting, and the setup retries amplified it).lib/login.ts:loginViaHubnow races "left /login" against bunyip'serror_box(.text-destructive, rendered only on a failed login) appearing. A rejection fails in ~1s and throwshub login did not leave /login: "<message>"(e.g. "Too many attempts", "Invalid email or password"), instead of a blind 30s timeout. NewreadLoginError()scrapes the box.playwright.config.ts:retries: 0on thesetupandauth-uiprojects (the only login-bearing ones);account-ui/apikeep the globalCI ? 2 : 0. Retrying a rate-limited login just deepens the 5/min hole.Test
tsc --noEmitclean; all 18 specs collect via--list. The.text-destructiveselector is false-positive-free (bunyip renders it only on a failed login, perbunyip-web/src/views/ui.rserror_box). No em-dash.Operational note
The original run's root cause was the login rate limit, not a code bug - the credentials are valid. After this lands, a rate-limited run fails fast with "Too many attempts"; wait ~60s between runs to let the window clear.
#BUNYIP-165