The attachments of the message open in the preview, by their file names.
Examples
Then the message should list the attachment "test-plan.txt"
Then the message should not list the attachment "test-plan.txt"
And the message should list the attachment "test-plan.txt"
Then the message should not list the attachment "report.pdf"
Then the message should list the attachment "test-plan.txt"
Pattern
Then(/^the message should( not)? list the attachment "([^"]*)"$/, …)
Part of @webship-js/roundcube-steps (github.com/webship/roundcube-steps), a step pack for Webship-js 2.0.x.