<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rushabh Shroff</title>
    <description>The latest articles on DEV Community by Rushabh Shroff (@rushabhshroff).</description>
    <link>https://dev.to/rushabhshroff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4005269%2F28d3589f-bee4-44c9-85f1-6737b24ff235.png</url>
      <title>DEV Community: Rushabh Shroff</title>
      <link>https://dev.to/rushabhshroff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rushabhshroff"/>
    <language>en</language>
    <item>
      <title>How are you testing email workflows in your E2E tests?</title>
      <dc:creator>Rushabh Shroff</dc:creator>
      <pubDate>Sun, 28 Jun 2026 06:01:46 +0000</pubDate>
      <link>https://dev.to/rushabhshroff/how-are-you-testing-email-workflows-in-your-e2e-tests-4m5a</link>
      <guid>https://dev.to/rushabhshroff/how-are-you-testing-email-workflows-in-your-e2e-tests-4m5a</guid>
      <description>&lt;p&gt;I've spent the last few years helping engineering teams with test automation, and one thing I've noticed is that email workflows are still surprisingly difficult to test.&lt;/p&gt;

&lt;p&gt;Most teams have mature E2E setups today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Playwright or Cypress&lt;/li&gt;
&lt;li&gt;CI/CD pipelines&lt;/li&gt;
&lt;li&gt;Parallel execution&lt;/li&gt;
&lt;li&gt;Cross-browser testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But when it comes to flows like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Email verification&lt;/li&gt;
&lt;li&gt;OTP authentication&lt;/li&gt;
&lt;li&gt;Password resets&lt;/li&gt;
&lt;li&gt;Magic links&lt;/li&gt;
&lt;li&gt;Team invitations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;there's usually some custom solution involved.&lt;/p&gt;

&lt;p&gt;I've seen teams:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use shared inboxes&lt;/li&gt;
&lt;li&gt;Poll Gmail or Outlook APIs&lt;/li&gt;
&lt;li&gt;Run MailHog/Mailpit internally&lt;/li&gt;
&lt;li&gt;Mock email delivery completely&lt;/li&gt;
&lt;li&gt;Skip testing the email part of the journey&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What's interesting is that these are often some of the most critical user flows in an application.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If a user can't verify their account or reset their password, the product is effectively broken.&lt;/p&gt;

&lt;p&gt;So I'm curious:&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;How does your team handle email workflows in E2E tests?&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
A few questions:&lt;/p&gt;

&lt;p&gt;Do you test the actual email flow end-to-end?&lt;br&gt;
Do you use a dedicated email testing tool or an internal solution?&lt;br&gt;
What's the biggest pain point you face today?&lt;br&gt;
If you use Playwright, how are you handling OTP and magic-link workflows?&lt;/p&gt;

&lt;p&gt;Would love to hear how others are approaching this problem.&lt;/p&gt;

</description>
      <category>playwright</category>
      <category>testing</category>
      <category>selenium</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
