Prerequisite: A Momentic-provisioned inbox. Request
one.
Your app emails a magic login link to the provisioned inbox, and a
JavaScript step in the test fetches the latest message and pulls the link
out. Use this recipe when login arrives as a URL instead of a code.
Fetch and navigate
Add a JavaScript step that fetches the latest email, extracts the
verification link, and saves it to the environment.
Then add a Navigate step with URL {{ env.VERIFICATION_LINK }}.
This script polls for up to 30 seconds, well within the JavaScript step’s
90-second default timeout. For longer polls, raise the step’s Timeout
field (cloud runs cap the timeout at 60s; the CLI supports up to 10 minutes).