Assert what an email the site sent says (its text, or a part of it).
Examples
Then the email with the subject "Password reset" to "editor" should say "We received a request to reset your password"
Then the email with the subject "has invited you" to "webship-test-invite@example.com" should say "Accept invitation using this link"
And the email with the subject "Password reset" to "viewer" should say "Hello Viewer Test!"
Then the email with the subject "Password reset" to "editor" should say "Hello Editor Test!"
Then the email with the subject "has invited you" to "webship-test-join@example.com" should say "Design team"
Pattern
Then(/^the email with the subject "([^"]*)" to "([^"]*)" should say "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.