Test Automation
Integrate SigninID into your E2E tests to automate email verification flows. Use waitForNew() to wait for verification emails and extract OTP codes automatically.
Complete Examples
Each example shows a full signup flow: fill form, wait for email, enter OTP, verify success.
Tips
- 1.Use unique email addresses: Use
test-${Date.now()}@...pattern to isolate parallel test runs. - 2.Use
waitForNew(): Polls until email arrives - no arbitrarywaitForTimeout()needed. - 3.Adjust timeout if needed: Default is 30 seconds. Use
{ timeout: 60000 }for slower environments. - 4.Use environment variables: Set
SIGNINID_SECRET_KEYand just callnew SigninID().