Prerequisites: a permanent inbox you provisioned in Settings > Email
inboxes, or an ephemeral inbox you create at runtime with
email.create.email
object. Momentic-provisioned inboxes end in @usemomentic.com or
@gomomentic.com.
email.create
Provision an ephemeral inbox at test runtime. Momentic deletes it after 24
hours. The lifetime is fixed and not configurable from test code.
Use this when each run needs a clean inbox (signup flows, magic-link logins,
password resets) and you don’t want to share a permanent address across parallel
runs.
{{ env.INBOX_EMAIL }},
and in a later JavaScript step fetch the verification email:
email.send
Send an email from a Momentic-provisioned address.
from and
contact Momentic to allowlist the recipient address or domain for your
organization.
email.fetchLatest
email.fetchLatest returns the most recent email, polling until one arrives or
the timeout elapses. It throws on timeout.
email.fetchAll
email.fetchAll returns up to limit emails without polling and throws if the
inbox is empty. Defaults: 15-minute window, 3 emails. Max: 24 hours, 10 emails.
Isolated inboxes
Append a suffix to your provisioned username to create unlimited isolated inboxes. If your username ismomentic, momentic+test@usemomentic.com is a
separate inbox fetched via inbox: "momentic+test".
Use randomized suffixes (e.g. Date.now()) in parallel runs to avoid race
conditions.