End-to-end testing user invitations with Gmail

Schedule a Demo

Inviting users to a particular application is an incredibly common use-case for applications used in the workplace, but is a notoriously challenging user experience to test. While it seems like an easy flow (invite someone, accept the invitation, verify the invitation actually adds the user to the appropriate team), it is complicated for a variety of reasons:

  • Testing the invitation flow end-to-end often relies on sending, receiving, and interacting with emails, which can be a pain to write tests for, especially considering that you do not control the UI of the email inbox your customers will be using.
  • Because an invitation flow involves multiple users, you have to manage multiple sets of credentials, as well as potential teardown to delete users after the test is over.

What's the easiest way to test user invitations with Gmail?

walrus.ai enables developers to easily end-to-end test the process without managing any of the complicated third-party dependencies or multiple sets of credentials.

  • Writing the full end-to-end test takes minutes, because it's just written in plain English.
  • walrus.ai handles end-to-end tests with email out of the box, without integrating with any APIs whatsoever. Simply add an instruction to verify an email is received.
  • walrus.ai handles user credentials on its end, so you don't need to specify specific user credentials if you do not want to.
  • walrus.ai can handle any test setup or teardown within the test itself, simply add those steps to the test instructions.
A one-size-fits-most end-to-end test for user invitations with Gmail using walrus.ai
2name: 'User Invitation'
3url: 'https://your-site.com'
5 - 'Login as an admin'
6 - 'As the admin, go to Team'
7 - 'As the admin, add a user and invite the user'
8 - 'As the invited user, verify an email invitation is received'
9 - 'As the invited user, register using the link in the email invitation'
10 - 'Verify the invited user is in the same organization as the admin'

Ready to start testing invites with Gmail?