Email Interception for Playwright Testing? #405
-
I appreciate the resend mock provided, it get's the job done quite nicely in development. I'm wondering though on how to intercept emails during Playwright tests. Specifically, I want to validate the correctness of sign-up confirmation links and evaluate their behavior upon activation. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
kentcdodds
Aug 27, 2023
Replies: 1 comment 2 replies
-
The emails are written to the file system so you can read them during tests and do whatever you like. This is how our onboarding test works. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MoSattler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The emails are written to the file system so you can read them during tests and do whatever you like. This is how our onboarding test works.