When I close the issue

Close the open issue (its "Change Status To:" closed, or its Close button once it is resolved; the resolution fixed), or reopen it (its Reopen, to feedback).

Examples

When I close the issue
When reopen the issue
And I close the issue
And reopen the issue
When we close the issue

Pattern

When(/^(I |we )*(close|reopen) the issue$/, …)

Part of @webship-js/mantisbt-steps (github.com/webship/mantisbt-steps), a step pack for Webship-js 2.0.x.