From 1a4bb8848d54db4cd68e9f62b85a7ae42a49da8c Mon Sep 17 00:00:00 2001 From: ngraf Date: Tue, 10 Dec 2024 10:03:58 +0100 Subject: [PATCH] Added hint that "I.seeEmailAttachment" treats parameter as regular expression --- docs/email.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/email.md b/docs/email.md index 1a1a567c0..db8ee3297 100644 --- a/docs/email.md +++ b/docs/email.md @@ -156,8 +156,8 @@ I.seeEmailIsFrom('@mysite.com'); I.seeInEmailSubject('Awesome Proposal!'); I.seeInEmailBody('To unsubscribe click here'); I.seeNumberOfEmailAttachments(2); -I.seeEmailAttachment('Attachment_1.pdf') -I.seeEmailAttachment('Attachment_2.pdf') +I.seeEmailAttachment('Attachment_1.pdf'); // Regular expression. Escape special characters like '(' or ')' in filename. +I.seeEmailAttachment('Attachment_2.pdf'); ``` > More methods are listed in [helper's API reference](https://github.com/codeceptjs/mailslurp-helper/blob/master/README.md#api)