Skip to content

Commit c4d3f30

Browse files
authored
Update email.md (#3223)
New available steps since v1.0.6 of Mailslurp helper added to documentation: ``` I.seeNumberOfEmailAttachments(2); I.seeEmailAttachment('Attachment_1.pdf') ``` See recently merged PR: codeceptjs/mailslurp-helper#22
1 parent 435964d commit c4d3f30

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/email.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ After opening an email assertion methods are available.
145145
* `seeEmailIsFrom`
146146
* `seeInEmailBody`
147147
* `dontSeeInEmailBody`
148+
* `seeNumberOfEmailAttachments`
149+
* `seeEmailAttachment`
148150

149151
And here is an example of their usage:
150152

@@ -153,6 +155,9 @@ I.waitForLatestEmail()
153155
I.seeEmailIsFrom('@mysite.com');
154156
I.seeInEmailSubject('Awesome Proposal!');
155157
I.seeInEmailBody('To unsubscribe click here');
158+
I.seeNumberOfEmailAttachments(2);
159+
I.seeEmailAttachment('Attachment_1.pdf')
160+
I.seeEmailAttachment('Attachment_2.pdf')
156161
```
157162

158163
> More methods are listed in [helper's API reference](https://github.com/codeceptjs/mailslurp-helper/blob/master/README.md#api)

0 commit comments

Comments
 (0)