fix: show user's full name when searching (#5043)

* fix: show user's full name when searching

* fix the fname and name

* minor tweak at e2e password

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Reinaldo Neto 2023-05-10 16:32:39 -03:00 committed by GitHub
parent f4ff7c82af
commit edea063cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ export const search = async ({ text = '', filterUsers = true, filterRooms = true
...user,
rid: user.username,
name: user.username,
fname: user.name,
t: SubscriptionType.DIRECT,
search: true
});

View File

@ -31,7 +31,7 @@ const data = {
return {
username: `user${randomVal}`,
name: `user${randomVal}`, // FIXME: apply a different name
password: `password@123${randomVal}`,
password: `Password1@${randomVal}`,
email: `mobile+${randomVal}@rocket.chat`
};
}