Guides
Guides
Copy-paste examples that submit a signup form with a mailsocket address and wait for the OTP. Each one calls the REST API directly.
-
Waiting for an OTP in pytest
A pytest test that submits a signup form with a mailsocket inbox address, then blocks on the wait endpoint until the OTP arrives.
-
Waiting for an OTP in Cypress
A Cypress test that drives a real signup form with a mailsocket address and awaits the OTP over Cypress's built-in HTTP client.
-
Waiting for an OTP in Puppeteer
A Puppeteer script that submits a signup form, then blocks on the wait endpoint with fetch until the OTP arrives.
-
Waiting for an OTP in GitHub Actions
Wire a wait-for-OTP test into CI by storing your mailsocket key and inbox id as encrypted secrets and exporting them to your test run.
-
Waiting for an OTP in Playwright
A Playwright spec on GitHub (
examples/playwright/otp-signup.spec.ts) that fills a signup form and waits for the code.