Skip to content

Commit

Permalink
Merge pull request #20406 from GraceWang571/change_password
Browse files Browse the repository at this point in the history
Fix change_password failure on TW
  • Loading branch information
foursixnine authored Oct 17, 2024
2 parents a850754 + 189db82 commit bc6ff4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/services/users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ sub switch_user {

sub change_pwd {
assert_and_click "users-password";
assert_and_click "current-password";
type_password;
wait_still_screen;
assert_and_click "new-password";
Expand All @@ -74,7 +75,14 @@ sub add_user {
assert_and_click "focus-name-field";
type_string $newUser;
assert_screen("input-username-test");
if (check_screen('username-empty')) {
assert_and_click 'username-empty';
type_string $newUser;
}
assert_and_click "set-password-option";
if (!check_screen('adduser-password-window')) {
assert_and_click "adduser-next";
}
assert_and_click "set-newuser-password";
type_string $pwd4newUser;
assert_and_click "confirm-newuser-password";
Expand Down

0 comments on commit bc6ff4d

Please sign in to comment.