getInbox accepts a single input argument with the following TypeScript definition:
TypeScript
address: Pass any email address from your team’s email allowlist. If you don’t pass this option, your team’s default email address is used. Your QA Wolf QA engineer can add additional allowed emails or change the default on the Workflow Settings page (Settings > Workflows tab).- You may append any value to this email address after a
+sign (”plus addressing”). For example, if you have[email protected]in your allowlist, you can pass[email protected]as the value here. - You can also optionally use a named address like
Foo Bar <[email protected]>so that your full name appears as the sender.
- You may append any value to this email address after a
new: Set this totrueto get a new unique email address. This is equivalent to including a plus address in youraddressargument, but you don’t have to worry about generating the unique value yourself.delimiter: If your app does not allow plus addresses for user emails, you can pass in a different delimiter along with thenewoption and it will be used instead of+.
new option, here is what that looks like in TypeScript:
TypeScript
getInbox to get an email address in a QA Wolf workflow:
TypeScript
emailAddress, getInbox also returns the following functions, which are bound to emailAddress:
sendMessage: Send a message fromemailAddresswaitForMessage: Wait for one expected message to arrive in the inbox foremailAddresswaitForMessages: Wait for a period of time and then return all messages that have arrived in the inbox foremailAddressduring that time.