Reputation: 134
My goal is to somehow send the email and click the link to reset the password, access that link and write a new password. Don't really know if this is possible or could only be mocked.
I would also like to catch the content of the email and check it. Is there a way within TestCafe to do this?
Upvotes: 0
Views: 247
Reputation: 711
You can use TestCafe to fill out and submit the password recovery form that will initiate a request to your backend. After that, you can use either of the following solutions:
The first approach seems to be more robust because it doesn't rely on any third-party services.
Upvotes: 3