Logo: Relish

  1. Sign in

Project: Email-test-helpers

Find email

Scenarios
Scenario Outline
Given
emails are sent with "delivery type"
And
a "Welcome" email sent to "[email protected]" containing:
h1a href="http://first-email/first-link"Welcome/a/h1
pa href="http://first-email/last-link"Confirm/a/p
And
a "Goodbye" email sent to "[email protected]" containing:
h1a href="http://last-email/first-link"Goodbye/a/h1
pa href="http://last-email/last-link"Confirm/a/p
Then
"code" should find "matching email" email
Examples:
delivery type code matching email
html find_email Goodbye
html find_email(subject: 'Welcome') Welcome
html find_email(to: '[email protected]') Welcome
html find_email(subject: /welcome/i) Welcome
html find_email(body: /welcome/i) Welcome
html find_email(subject: 'welcome')
multipart find_email Goodbye
multipart find_email(subject: 'Welcome') Welcome
multipart find_email(to: '[email protected]') Welcome
multipart find_email(subject: /welcome/i) Welcome
multipart find_email(body: /welcome/i) Welcome
multipart find_email(subject: 'welcome')

Last published over 4 years ago by zubin.