What is the difference between email integration and end-to-end testing?+
An integration test can call your signup API, receive the resulting email and submit its verification code to your application API. A browser end-to-end test also exercises the form and signed-in session. MailSlurp supplies the real inbox and received message for both; your assertions prove that the account is verified or the password reset succeeds. Follow an email test from request to final assertion.
How can I extract an email OTP inside a Cypress test?+
Create a MailSlurp inbox for the Cypress test, submit its address through your signup or login flow, then wait for the matching message through the MailSlurp API. Extract the OTP with a pattern, enter it in the browser, and keep the received email with the test result when a failure needs investigation. Read the Cypress email testing guide.
How do I test signup emails in Playwright without shared Gmail?+
Provision a fresh MailSlurp inbox in the Playwright test or worker fixture and use that address during signup. Wait for the real delivered email, validate its verification link, and finish the browser journey without shared Gmail credentials or messages left by another run. Delete the inbox and application test user in teardown. Read the Playwright email testing guide.
How do I create an isolated inbox for every automated test run?+
Call the MailSlurp inbox API during test setup and store the new inbox ID and email address with that run. Create one inbox per worker or scenario, apply an expiry when appropriate, and wait by inbox ID so parallel builds never read one another's messages. Read the inbox creation guide.
Can I use MailSlurp with Selenium, JUnit, Postman or other test frameworks?+
Yes. Use an official MailSlurp SDK or call the REST API from your existing tests. Your framework runs the browser or API requests and makes the assertions; MailSlurp provides the inboxes, phone numbers and received messages. The same approach works with Playwright, Cypress, Selenium, JUnit, Postman, Vitest and other test runners. Explore test framework integrations.
How do I wait for the right email when a test receives several messages?+
Record the request start time, then wait in the test's inbox for a message that matches the expected subject, sender or recipient after that time. Set a bounded timeout. Unread-only filtering can narrow the results, but an unread email can still predate the current request. Assert the matching message's contents before continuing in your application. See how email matching works.
How can I make email tests more reliable in CI?+
Replace fixed sleeps with a wait for the expected message, and give each parallel test its own inbox. Set the test runner's timeout longer than the email wait so failures report the missing message clearly. Store the API key in your CI secret store and retain the received message ID when a failed run needs investigation. Troubleshoot email waits and timeouts.
Can I test password resets, invitations and magic links end to end?+
Yes. Trigger the flow with a test inbox address, wait for its email and extract the relevant link. Check that the link belongs to your application before opening it in the test browser, then assert the expected account or login state. You can also exercise expired or already-used links and check how your application handles them. Read the verification link testing guide.
Can the same test suite check SMS verification codes and MFA?+
Yes. Use a MailSlurp phone number in your application's SMS verification flow, wait for the incoming text and extract the code for your test to submit. Combine email and SMS checks to cover signup, account recovery and multi-factor authentication. Keep each test's expected messages and phone number clearly associated to avoid mixing concurrent verification attempts. Read the SMS testing documentation.
Can QA teammates inspect test messages without writing code?+
Yes. Teammates can create inboxes, read received email and SMS, inspect message headers and download attachments in the MailSlurp dashboard. Use the dashboard alongside automated tests to investigate what arrived and review failures together. Individual user accounts, permissions and separate environments let you control access without sharing a login. Explore team inboxes and dashboards.
What can I assert beyond whether an email arrived?+
Check the sender, recipients, subject, HTML, text, headers, links and attachment metadata. Download attachments when your test needs to validate a generated receipt, report or other file. Combine those checks with browser assertions to verify both the message your application sent and the next step the customer takes. Read about message and attachment assertions.
Can I check how test emails look on different devices and email clients?+
Yes. Add MailSlurp device previews to your QA process to inspect the delivered email across supported clients and devices. Review layout, images, responsive behavior and light or dark appearance alongside your functional assertions. Use Email Audit for content checks such as broken links and missing images, and inbox placement testing when you need to check inbox or spam delivery. Explore device previews.