Personally, I verify that the verification email is sent with the correct content. However, I cannot log in to Google to find the email. Instead, I found a server-side function that returns the last email sent to a specific email address. Here is how I use it:
b.get(origin + '/-/e2e/last-email-sent?to=' + address, (response) => { var responseObj = JSON.parse(response.body);
I am going to add many other related functions of the e2e test server, for example /-/e2e/fast-forward-time?how-much=3600-seconds : -)
What I do with a real Gmail user (a real Gmail account that I created for e2e tests and nothing more) is just registering. That is what OpenAuth works. If this works, Iβm going to assume that any Gmail user will be able to read emails afterwards.
source share