fix(e2e): harden magic-link mail wait with timeout headroom and one re-request #293
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-279-e2e-magic-link-mail-wait-headroom"
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?
The magic-link spec used the default 30s waitForLink and a single link
request, so a Stalwart relay lag or a single dropped message timed out the
wait and failed the spec (run #1415, BUNYIP-279). This is the same flake
class already hardened for password-reset in BUNYIP-267/278.
Mirror that fix: extract a requestMagicLink helper that bumps the mail wait
to 40s and re-requests the link once if the first email has not landed.
Two requests stay within the MAGIC_LINK rate limit (3 per 600s), so a single
dropped mail no longer fails the spec.
#BUNYIP-279