I’m testing registration process we send the users email a magic link and I’m running a test that create a user with different email address everytime I’m not sure what is best practice for automating this process with palywright I use mailslurp but it has limit email ends
Depending on if you want to o check the contents of the email itself, or simply following the magic link works?
If you just want to test following the link, you might be able to retrieve it directly from the database.
Is the reason you’re generating a new eMail address every time, because you can’t clean something up in your test environment? Maybe you can find some way to control things via API or database to clear down before running the test.
Just because careful of parallel tests using the same data.
Clean up ur tests , delete email inboxes after each test to stay within maillurp’s limits?
If you have reach the limit then You can try other mail services that provide temporary emails like Mailinator, 10minutemail or guerrillamail and can help you in automation.