Assert that the editor that is open lists an attachment under its "Attachments" tab, by its file name, or does not.
Examples
Then the editor should list the attachment "webship-test-picture.png"
Then the editor should not list the attachment "webship-test-notes.txt"
And the editor should list the attachment "webship-test-picture.png"
And the editor should not list the attachment "webship-test-picture.png"
Then the editor should list the attachment "photo.jpg"
Pattern
Then(/^the editor should (not )?list the attachment "([^"]*)"$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.