From 3e888a7305bfaa4ca4029863e5cbb2ce3a854842 Mon Sep 17 00:00:00 2001 From: ngraf Date: Tue, 10 Dec 2024 10:49:39 +0100 Subject: [PATCH] Added hint that "I.seeEmailAttachment" treats parameter as regular expression (#4629) --- 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)