Attach a file to the open issue with a note (the page's Add Note takes files: its upload box, then Add Note), a file of the project by its path from where the suite runs, or an absolute path.
Examples
When I attach the file "tests/fixtures/upload.txt" to the issue
When attach the file "tests/fixtures/upload.txt" to the issue
And I attach the file "tests/fixtures/upload.txt" to the issue
And attach the file "tests/fixtures/upload.txt" to the issue
When we attach the file "tests/fixtures/upload.txt" to the issue
Pattern
When(/^(I |we )*attach the file "([^"]*)" to the issue$/, …)
Part of @webship-js/mantisbt-steps (github.com/webship/mantisbt-steps), a step pack for Webship-js 2.0.x.