Set the account's online status (Online, Away, Busy, Do not disturb, Invisible) with the status entry of the user menu and its "Online status" dialog. The status the account had is put back after the scenario.
Examples
When I set my status to "Away"
When I set my status to "Do not disturb"
When I set my status to "Online"
When we set my status to "Busy"
And I set my status to "Invisible"
Pattern
When(/^(?:I|we) set my status to "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.