Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: Setup service to mock and test emails #6809

Open
ericpgreen2 opened this issue Mar 4, 2025 · 2 comments
Open

e2e: Setup service to mock and test emails #6809

ericpgreen2 opened this issue Mar 4, 2025 · 2 comments
Assignees

Comments

@ericpgreen2
Copy link
Contributor

Two goals:

  1. We shouldn't have SendGrid send actual emails to [email protected] (it's a waste of resources)
  2. In our Playwright tests, we should be able to programmatically fetch email contents and simulate link clicks (e.g. an "Open dashboard" link)

A couple ideas:

  1. Extend the mockSender service (in email_test.go) to expose emails over an API that the Playwright tests can call
  2. Use a service like Mailpit to capture & expose emails
@begelundmuller
Copy link
Contributor

@ericpgreen2 We currently have a console sender that logs sent emails to the STDOUT. Would you be able to capture and check them from there?

@ericpgreen2
Copy link
Contributor Author

(Discussed in Slack that we'll go with the Mailpit approach)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants