Complete the active sprint from the board: press "Complete sprint", keep the proposal for the open issues (back to the backlog) and confirm. The sprint report opens.
Examples
When I complete the active sprint
When we complete the active sprint
And I complete the active sprint
When I complete the sprint on the board
And we complete the sprint on the board
Pattern
When(/^(I |we )*complete the (active sprint|sprint on the board)$/, …)
Part of @webship-js/jira-steps (github.com/webship/jira-steps), a step pack for Webship-js 2.0.x.