Attach a file to the post in the editor that is open, with the uploader of its "Attachments" tab. The path is from the folder the suite runs in. The step expects the board to take the file; "try to" expects nothing: assert the refusal with the next step.
Examples
When I attach the file "tests/fixtures/webship-test-picture.png" in the editor
When I try to attach the file "tests/fixtures/webship-test-notes.txt" in the editor
And we attach the file "tests/fixtures/webship-test-picture.png" in the editor
And we try to attach the file "tests/fixtures/webship-test-notes.txt" in the editor
Then I attach the file "tests/fixtures/webship-test-picture.png" in the editor
Pattern
When(/^(?:I|we) (try to )?attach the file "([^"]*)" in the editor$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.