fix(e2e): harden magic-link mail wait with timeout headroom and one re-request #293

Merged
Claude-Run merged 1 commit from fix/BUNYIP-279-e2e-magic-link-mail-wait-headroom into main 2026-06-30 07:18:30 +02:00
Member

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

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
fix(e2e): harden magic-link mail wait with timeout headroom and one re-request
All checks were successful
E2E / Playwright against deployment (pull_request) Successful in 23s
Check / fmt + clippy + build + tests (pull_request) Successful in 21m57s
Create release / Create release from merged PR (pull_request) Has been skipped
85f9595868
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
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/bunyip!293
No description provided.