When I close the issue

Close or reopen the open issue with its button (Gitea's "Close Issue" and "Reopen Issue", Forgejo's "Close issue" and "Reopen"), and wait until its state says so.

Examples

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

Pattern

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

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