Change the account's password in "Security", with its current password: the step types the password the account has, then the new one. Later steps of the scenario log in with the new password; the registry's password is put back after the scenario.
And I log out
Examples
When I change my password to "Webship-Changed-2026"
When we change my password to "Webship-Changed-2026"
And I change my password to "Another-Changed-2026"
When I change my password to "Webship-Changed-2026"
When I change my password to "Webship-Changed-2027"
Pattern
When(/^(?:I|we) change my password to "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.