fix(e2e): treat /login/* as still IN the login flow #105
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-login-pathname-anchor"
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?
Summary
The CI diagnostic dump from PR #104 revealed the staging E2E account has 2FA enabled. The bunyip hub redirects to
/login/2faafter the first credentials submit. The previousloginViaSpaURL-leaving check used/^\/login\/?$/, which only anchored against/loginexactly - so/login/2faslipped through as "URL has left /login" and the helper returned success while the user was actually mid-flow. The setup test then burned another 30s looking for a bearer no successful sign-in had minted.Widen the regex to
/^\/login(\/|$)/so any path under/login(2fa, mfa, recovery, etc) counts as IN the login flow. The poll keeps waiting and times out cleanly with a clearer message when the flow stalls.Does NOT fix the underlying 2FA issue - the E2E account either needs 2FA disabled or the test needs to enter a TOTP code (separate decision still pending). This just makes the failure mode "login never completed" rather than "login completed, no API call", so the next iteration is faster.
Test plan