-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W-13546967 - Fix change password form #1634
Conversation
Thanks for posting those videos, they are very helpful! |
toast({ | ||
title: formatMessage({ | ||
defaultMessage: 'Password updated', | ||
id: 'password_card.info.password_updated' | ||
}), | ||
status: 'success', | ||
isClosable: true | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocking comment, but I notice we're changing the UX and no longer showing a "✅ success" message. Does it not work with the altered functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a duplicate that was erroneously being shown either when there was an error or for a second time if it succeeded
Description
The "change password" form in V3 isn't working as expected as a result of a code regression. This was most likely due to the hook integration work. The user was able to change their password, but the follow up action of logging in with said new password would fail as the login action was being called with the wrong arguments. Additionally, no error was being shown and 2 success toasts were being displayed.
This PR fixes all these issues and adds some tests to ensure another regression doesn't happen.
In the below recording you'll see the broken behaviour. First I try to change the password using a current password that isn't the actual value, and as you can see, it visually succeeds. Next I try to change the password to something new using the actual current password, and as you can see there is a login error in the network window.
PasswordUpdateBroken.mov
Now in the recording below I do similar actions to which they are all working.
PasswordChangeFixed.mov
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General