Skip to content

Commit 3e888a7

Browse files
authored
Added hint that "I.seeEmailAttachment" treats parameter as regular expression (#4629)
1 parent 6e259e9 commit 3e888a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/email.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ I.seeEmailIsFrom('@mysite.com');
156156
I.seeInEmailSubject('Awesome Proposal!');
157157
I.seeInEmailBody('To unsubscribe click here');
158158
I.seeNumberOfEmailAttachments(2);
159-
I.seeEmailAttachment('Attachment_1.pdf')
160-
I.seeEmailAttachment('Attachment_2.pdf')
159+
I.seeEmailAttachment('Attachment_1.pdf'); // Regular expression. Escape special characters like '(' or ')' in filename.
160+
I.seeEmailAttachment('Attachment_2.pdf');
161161
```
162162

163163
> 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)