fix search query for non admin pages (#20078)

This commit is contained in:
Karan Hotchandani 2025-03-05 15:37:40 +05:30 committed by GitHub
parent 47d285abe5
commit d805ec9590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ export const visitUserProfilePage = async (page: Page, userName: string) => {
}
);
const userResponse = page.waitForResponse(
'/api/v1/search/query?q=**&from=0&size=*&index=*'
'/api/v1/search/query?q=**AND%20isAdmin:false%20isBot:false&from=0&size=*&index=*'
);
const loader = page.waitForSelector(
'[data-testid="user-list-v1-component"] [data-testid="loader"]',

View File

@ -149,7 +149,7 @@ const UserListPageV1 = () => {
isAdmin = false,
isDeleted = false
) => {
let filters = 'isBot:false';
let filters = 'isAdmin:false isBot:false';
if (isAdmin) {
filters = 'isAdmin:true isBot:false';
}