Send the password change form with values that the admin should refuse: an old password, and the new password and its confirmation. "with my old password" types the password of the users registry. Assert the refusal with the next step; a password the admin accepts is set back after the scenario.
Examples
When I try to change my password with the old password "Not-the-password-1" and the new passwords "Changed-pass-2026!" and "Changed-pass-2026!"
When I try to change my password with my old password and the new passwords "Changed-pass-2026!" and "Changed-pass-2026?"
And we try to change my password with my old password and the new passwords "password" and "password"
When I try to change my password with my old password and the new passwords "12345678901" and "12345678901"
And I try to change my password with the old password "" and the new passwords "" and ""
Pattern
When(/^(I |we )*try to change my password with (?:the old password "([^"]*)"|my old password) and the new passwords "([^"]*)" and "([^"]*)"$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.