Change the password of the account that is logged in, through the admin's own form ("Change password" in the user tools): its password from the users registry, then the new one twice. The step sets the password of the registry back after the scenario, as the data administrator.
Examples
When I change my password to "Changed-pass-2026!"
When I change my password to "Another-pass-2026?"
And I change my password to "Changed-pass-2026!"
When I change my password to "Third-pass-2026#"
Given I change my password to "Changed-pass-2026!"
Pattern
When(/^(I |we )*change my password to "([^"]*)"$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.