test(e2e): give magic-link.spec the 3x timeout its mail retry needs (BUNYIP-452) #442
Loading…
Reference in a new issue
No description provided.
Delete branch "test/BUNYIP-452-magic-link-test-slow"
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?
BUNYIP-452 (relates BUNYIP-445).
Problem
magic-link.spec.tsrequestMagicLinkre-requests the magic link once if the first email does not land within 40s, so the mail wait can run up to 2 x 40s = 80s. The test had notest.slow()and ran under the default 60s per-test timeout, so when the first email lagged and the retry fired it blew 60s (BUNYIP-445 staging run: "Test timeout of 60000ms exceeded"). The siblingpassword-reset.spec.tshas the identical 2 x 40s retry withtest.slow()(180s), which is why it passed (41.5s) while magic-link timed out.Change
Add
test.slow()to the magic-link test body (after the envtest.skip), mirroring password-reset.spec. No mail-wait change: the 2 x 40s retry already tolerates a slow or dropped first email; the missing piece was the 180s budget.Verification
tsc --noEmit(e2e, strict) passes.🤖 Generated with Claude Code